Remove lines from a file: Difference between revisions
+Stata
No edit summary |
(+Stata) |
||
Line 2,539:
remove_lines(File(__FILE__), 2, 3);</lang>
=={{header|Stata}}==
The usual way to solve this task in Stata consists in removing lines from the currently loaded dataset. This is done with the '''[http://www.stata.com/help.cgi?drop drop]''' command, or alternately with '''keep'''.
<lang stata>* drop lines 20 to 30
drop in 20/30
* keep lines 20 to 30, and remove everything else
keep in 20/30</lang>
=={{header|Tcl}}==
|