User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » UNIX command question? Page [1]  
Raige
All American
4386 Posts
user info
edit post

Been hoping to find a command similar to ls -Flag. I need to scan a primary folder and get all the folders listed within and the files within that and if they are symlinks are not.

I can do this slowly but was hoping I could get a massive dump of this information.

12/7/2006 2:04:17 PM

Noen
All American
31346 Posts
user info
edit post

ls -Flag -R > dump.txt

?

12/7/2006 2:05:13 PM

Raige
All American
4386 Posts
user info
edit post

Oh Noen you magnificent bastard! Appreciate it. There wouldn't be a way to make it dump to the dump.txt all nice and friendly looking would there?

12/7/2006 2:48:12 PM

qntmfred
retired
40726 Posts
user info
edit post

define friendly looking

12/7/2006 3:06:06 PM

YOMAMA
Suspended
6218 Posts
user info
edit post

This is what it look like - Never used the command before but what would you want it to look like?

drwxr-xr-x 446 drunet 20480 Dec  7 16:30 ../
drwxr-xr-x 2 drunet 4096 May 11 2006 Jimmy Buffet/
drwxr-xr-x 2 drunet 4096 May 11 2006 Songs You Know By Heart/

./Jimmy Buffett/Jimmy Buffet:
total 18632
drwxr-xr-x 2 drunet 4096 May 11 2006 ./
drwxr-xr-x 4 drunet 4096 Mar 5 2006 ../
-rwxr-xr-x 1 drunet 3065263 May 11 2006 Jimmy Buffet - Brown Eyed Girl.mp3*
-rwxr-xr-x 1 drunet 2744274 May 11 2006 Jimmy Buffet - Changes In Latitude.mp3*
-rwxr-xr-x 1 drunet 2763567 May 11 2006 Jimmy Buffet - Cheeseburger In Paradise.mp3*
-rwxr-xr-x 1 drunet 2650651 May 11 2006 Jimmy Buffet - Come Monday.mp3*
-rwxr-xr-x 1 drunet 4896973 May 11 2006 Jimmy Buffet - Holiday.mp3*
-rwxr-xr-x 1 drunet 2904543 May 11 2006 Jimmy Buffet - Margaritaville.mp3*

./Jimmy Buffett/Songs You Know By Heart:
total 39928
drwxr-xr-x 2 drunet 4096 May 11 2006 ./
drwxr-xr-x 4 drunet 4096 Mar 5 2006 ../
-rwxr-xr-x 1 drunet 2760756 May 11 2006 Jimmy Buffett - 01 - Cheeseburger In Paradise.mp3*
-rwxr-xr-x 1 drunet 3355512 May 11 2006 Jimmy Buffett - 02 - He Went To Paris.mp3*
-rwxr-xr-x 1 drunet 3288221 May 11 2006 Jimmy Buffett - 03 - Fins.mp3*
-rwxr-xr-x 1 drunet 3284041 May 11 2006 Jimmy Buffett - 04 - Son Of A Son Of A Sailor.mp3*
-rwxr-xr-x 1 drunet 3719137 May 11 2006 Jimmy Buffett - 05 - A Pirate Looks At Forty.mp3*
-rwxr-xr-x 1 drunet 4035532 May 11 2006 Jimmy Buffett - 06 - Margaritaville.mp3*
-rwxr-xr-x 1 drunet 3034102 May 11 2006 Jimmy Buffett - 07 - Come Monday.mp3*
-rwxr-xr-x 1 drunet 3135248 May 11 2006 Jimmy Buffett - 08 - Changes In Latitudes, Changes In Attitudes.mp3*
-rwxr-xr-x 1 drunet 2604022 May 11 2006 Jimmy Buffett - 09 - Why Don't We Get Drunk And Screw.mp3*
-rwxr-xr-x 1 drunet 2731081 May 11 2006 Jimmy Buffett - 10 - Pencil Thin Mustache.mp3*
-rwxr-xr-x 1 drunet 2832227 May 11 2006 Jimmy Buffett - 11 - Grapefruit- Juicy Fruit.mp3*
-rwxr-xr-x 1 drunet 2528789 May 11 2006 Jimmy Buffett - 12 - Boat Drinks.mp3*
-rwxr-xr-x 1 drunet 3490513 May 11 2006 Jimmy Buffett - 13 - Volcano.mp3*

./John Coltrane:
total 17548
drwxr-xr-x 2 drunet 4096 May 11 2006 ./
drwxr-xr-x 446 drunet 20480 Dec 7 16:30 ../
-rwxr-xr-x 1 drunet 4000868 May 11 2006 john coltrane - after the rain.mp3*
-rwxr-xr-x 1 drunet 7227639 May 11 2006 John Coltrane - The Heavyweight Champion - 04 - 09 - Mr Knight.mp3*

12/7/2006 3:16:41 PM

philihp
All American
8349 Posts
user info
edit post

he wants it to look like he has tastes

ZING!

12/7/2006 10:10:10 PM

Raige
All American
4386 Posts
user info
edit post

my bad. I opened it in notepad instead of wordpad. Forgot about the line break differences. Noen for president!


[Edited on December 8, 2006 at 10:20 AM. Reason : !]

12/8/2006 10:08:32 AM

Bakunin
Suspended
8558 Posts
user info
edit post

see also: man ls

12/8/2006 10:33:46 PM

Raige
All American
4386 Posts
user info
edit post

^ cute, took me a second to realize that was how to get the instructions about ls.

12/12/2006 2:07:25 PM

dFshadow
All American
9507 Posts
user info
edit post

wow

12/12/2006 2:08:41 PM

qntmfred
retired
40726 Posts
user info
edit post

>.<

12/12/2006 2:30:18 PM

Noen
All American
31346 Posts
user info
edit post

gotta love e115 circa 1999

or not, forgot I placed out hahahahaha

[Edited on December 12, 2006 at 2:37 PM. Reason : np raige]

12/12/2006 2:37:33 PM

 Message Boards » Tech Talk » UNIX command question? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.