Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting the contents of a file.
Message
Information générale
Forum:
Linux
Catégorie:
Autre
Divers
Thread ID:
00523606
Message ID:
00523645
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform