Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use the UNIX redirect command to create lists' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use the UNIX redirect command to create lists
Authored by: cedmond on Jun 17, '03 01:33:22PM
This is a cool tip. In addition I would like to add that instead of using
ls -R >> textfile.txt
and getting all of the sub-directories you could list multiple directories after the 'ls' command. Such as:
ls ~/Pictures/ ~/Music/ >> textfile.txt
That way both directory listings would end up in the same text file.

[ Reply to This | # ]
Use the UNIX redirect command to create lists
Authored by: belette on Jun 18, '03 07:20:45AM
Or you could
sudo ls -R / >> hd.txt
and watch the file grow... ;-) Mine's 8.5 MB. Useful huh? (well, it could be, but now's just for fun)

[ Reply to This | # ]