Empty Issue
Im running a dash script. Now i want to be able ro emthy all .txt files out of the /tmp folder? Could i have a example please thanks.
|
Eh?
Code:
for i in `ls -1 /tmp/*txt`; do cat /dev/null > $i; done Or did you mean delete them? Code:
rm /tmp/*txt Cheers, Tink |
All times are GMT -5. The time now is 06:29 AM. |