Hi
Let say a flat file contains 1000 lines. The cursor is at the 530 line number.
Now I like to delete all the line at one ahot. how it can be done?
You want to empty the file ?
At the prompt give
> file.name
Within the editor (say vi), give
:g/.*/d
or u can type something like this:
# cat /dev/null > filename
where "filename" is the file u want to empty at one shot