Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting the contents of a file.
Message
General information
Forum:
Linux
Category:
Other
Miscellaneous
Thread ID:
00523606
Message ID:
00523645
Views:
12
>Hello,
>Does anybody know how to delete the contents of a file.
>For example I have a pretty big file and when I pico into it I hit 'ctrl k' to delete each line. Is there an easier way of doing this without deleting the file and recreating it?
>Thanks
> --Mike

Adding to my previous reply...
OR, you can open a term and issue 'echo '' > filename'

Or, using KEdit or one of the other GUI editors on KDE2, use
the "New" option and then immediately save it with the same name
as the file you want to overwrite...
JLK
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform