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
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?
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.
Summary: Hi I have a script that run a program, the problem i am having is that it outputs the error to the screen & goes to the next line to run the programme my script look someting like this: !#/bin/ksh myp...
Summary: Hi all, i want to listing the file group by file extenstion (type) i have 4 .csh and 2 .txt and 3 csv file in my current dirm i want to know only the type of file extenstion like this csh txt csv i t...
Summary: Hello i'm still new of using unix shell commands i'm gonna build a simple shell script that write to some file like "logs.txt" everytime the script is executed. the string that is going to be writte...