Almost impossible question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Almost impossible question
# 1  
Old 04-23-2008
Almost impossible question

Would anyone know how to get a directory listing of all files in a directory as well as all the files in their respective subdirectories and save the listings to a file? I realize this is tricky.
# 2  
Old 04-23-2008
Use the find command.
# 3  
Old 04-23-2008
Quote:
Originally Posted by shamrock
Use the find command.
..lol..can anyone at all help me?
# 4  
Old 04-23-2008
The forums are shock full of examples. I would estimate that there would be a dozen good hints if you were to take the time search just the last few days' worth of postings.

Code:
find . -ls > outputfile

... provided your find understands -ls
# 5  
Old 04-23-2008
Code:
find /path/to/starting/directory -exec ls {} \;

will work on any modern unix system
# 6  
Old 04-23-2008
Quote:
Originally Posted by jim mcnamara
Code:
find /path/to/starting/directory -exec ls {} \;

will work on any modern unix system
find /path/to/starting/directory -type f > outputfile
# 7  
Old 04-24-2008
My version of UNIX isn't modern....I get the following error:

UX:find: ERROR: No action specified
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Impossible to access on /vol1

hi team, I'm a new with Solaris system and i'm a french, so my english will not be very good but I'll try to explain my problem. I have a Sun server SunFire X4170 with Solaris 10 as OS. since last week I am not able to access on /vol1 anymore. And bellow are the warning messages which are... (20 Replies)
Discussion started by: cerco
20 Replies

2. Shell Programming and Scripting

wc question

I am new to unix. how to get only the no. of lines output from the wc -l command. Input: wc -l filename it gives <no.of lines> filename i need only the interger value. as <no.of lines> Thanks in advance (2 Replies)
Discussion started by: sanvel
2 Replies

3. UNIX for Advanced & Expert Users

fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system"

I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck: fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies

4. HP-UX

Is it really impossible to force umount on HP-UX

Hello, yeah... here my question : Exist some way to force umount on HP other than reboot? Thanks gb (12 Replies)
Discussion started by: gogol_bordello
12 Replies

5. UNIX for Dummies Questions & Answers

Next to impossible question

I noticed that I have a print job that is hung up (lpstat -o) due to a broken printer. Is there a way to re-route the printed information into a text file? Or does it exist somewhere in UNIX as a text file? (5 Replies)
Discussion started by: danceofillusion
5 Replies

6. AIX

OS Question

What AIX version I need to run a software in a R6000 model 6015/6020 in a IBM P5??? Im implementing a Hot SIte. Is this possible or I need identical systems hardware and software? (1 Reply)
Discussion started by: IBravo
1 Replies

7. UNIX for Dummies Questions & Answers

question?

Is there any way to use sed and count the number of alphabetic characters in a sentence? (4 Replies)
Discussion started by: brentdeback
4 Replies

8. Programming

Question?

what is WDFP and WE STATION? (1 Reply)
Discussion started by: billybayou
1 Replies
Login or Register to Ask a Question