|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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~ |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Thanks a bunch for that it...
~n0bbY~ |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > A querky question regarding ls |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|