Computing.Net > Forums > Unix > Output Recursive List to File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Output Recursive List to File

Reply to Message Icon

Name: dizzybee
Date: February 27, 2008 at 03:58:35 Pacific
OS: n/a
CPU/Ram: n/a
Product: n/a
Comment:

I'm running the command in Unix:

% ls -lR > filename

to list all contents of subdirectories and dump the list to a text file. Apparently it doesnt work. Help?




Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: February 27, 2008 at 07:12:07 Pacific
Reply:

The -R switch is relatively new to the ls command. Maybe your ls command doen't support -R. That's the only reason I can think of why it wouldn't work?

Have you considered using the find command:

find . -type f -print


0

Response Number 2
Name: ghostdog
Date: March 2, 2008 at 22:23:08 Pacific
Reply:

"It doesn't work" is not very intuitive. show the result of ls -lR and any error messages it gives.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Find duplicate value comp... Find duplicate value &...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Output Recursive List to File

Output Error to file www.computing.net/answers/unix/output-error-to-file/7197.html

Listing the file group by type www.computing.net/answers/unix/listing-the-file-group-by-type/8364.html

Write to file www.computing.net/answers/unix/write-to-file/2878.html