Almost impossible question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Almost impossible question
# 8  
Old 04-24-2008
Hammer & Screwdriver using the ls command

ls -l -R >mylogfile

This will recursively (hence the -R) list files starting where you currently are. It will send the result to a file called mylogfile
# 9  
Old 04-24-2008
Hi You can use this command:

ls -R > fileslist

Hope this is what you want!
# 10  
Old 04-24-2008
Watch the power of find:
go the the directory you want to list, and type:
find . -print|more

And see the output, if its what you want, just redirect it to a file...
# 11  
Old 04-24-2008
Quote:
Originally Posted by joeyg
ls -l -R >mylogfile

This will recursively (hence the -R) list files starting where you currently are. It will send the result to a file called mylogfile
Quote:
Originally Posted by gkalangi
Hi You can use this command:

ls -R > fileslist

Hope this is what you want!
Thanks guys; this worked great. Exactly what I was looking for.
# 12  
Old 04-24-2008
Quote:
Originally Posted by vgersh99
find /path/to/starting/directory -type f > outputfile
You have to specify some action for "find". Many modern "find"s (including the AIX v5.3 i'm working on) imply "-print" if nothing else is specified, but that is only silently tolerating faulty input. All of the following lines would work regardless of the "find" in question being a "classical" (unassuming) or a "modern" one:

find /path/to/starting/directory -print > outputfile
find /path/to/starting/directory -ls > outputfile
find /path/to/starting/directory -exec ls -l {} \; > outputfile
etc.

bakunin
# 13  
Old 05-14-2008
OH NO you di-iint....I don't want ads on MY forum message. Someone make me a mod so I can remove them.
 
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