Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 10th, 2003, 01:33 AM
n0bbY n0bbY is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Australia
Posts: 69 n0bbY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 17 sec
Reputation Power: 7
A querky question regarding ls

Its not often I'm not that a question regarding ls comes up so .. I'm really embarassed.. but for the life of me I can't think of how to do want I need to do..

ls = returns files (cool)
ls -R = returns files / directories recursively..

The problem is that it returns them like..

./images
test.jpg
test2.jpg
test3.jpg

./images/more
test4.jpg
test5.jpg
test6.jpg

Ok.. now what I would like to do is

get it to display per line full path + file

/var/www/html/images/test.jpg
/var/www/html/images/test2.jpg
/var/www/html/images/test3.jpg
/var/www/html/images/more/test4.jpg
/var/www/html/images/more/test5.jpg
/var/www/html/images/more/test5.jpg

If anyone has a clue I'd be very grateful.

Cheers,

~n0bbY~

Reply With Quote
  #2  
Old June 10th, 2003, 04:25 PM
frymaster frymaster is offline
hubris, loathing, technology
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: http://frymaster.ca
Posts: 76 frymaster User rank is Private First Class (20 - 50 Reputation Level)frymaster User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 27 m 57 sec
Reputation Power: 8
your problem is that you're using ls! the only way to do it is:

find . -name "*"

note: i agree that ls is sorely defiicient in this regard.

Reply With Quote
  #3  
Old June 10th, 2003, 05:40 PM
n0bbY n0bbY is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Australia
Posts: 69 n0bbY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 17 sec
Reputation Power: 7
Thanks a bunch for that it...

~n0bbY~

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > A querky question regarding ls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway