Mattaus
June 17th, 2009, 05:39 AM
Hi all,
Quick question here. I have a folder that contains a lot of movies in it. I would like to obtain a printed list of these files so I can cross check them against another checklist I have.
Basically I want to just spit the list out to a text file so I can email it to myself at work.
What would the best way to go about doing that be?
Could I grep the output of an ls command and redirect it to another file or something?
Any help would be appreciated.
Cheers.
EDIT: Sorry, opened my mouth before using my head.
I guess this would work fine:
ls -1 | sort > temp.txt
- Matt.
Quick question here. I have a folder that contains a lot of movies in it. I would like to obtain a printed list of these files so I can cross check them against another checklist I have.
Basically I want to just spit the list out to a text file so I can email it to myself at work.
What would the best way to go about doing that be?
Could I grep the output of an ls command and redirect it to another file or something?
Any help would be appreciated.
Cheers.
EDIT: Sorry, opened my mouth before using my head.
I guess this would work fine:
ls -1 | sort > temp.txt
- Matt.