![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| listing of directories with / at end...without ls -F | vasanthan | UNIX for Dummies Questions & Answers | 10 | 04-16-2008 01:34 AM |
| listing of directories with / ...not to use ls -F | vasanthan | UNIX for Advanced & Expert Users | 1 | 04-16-2008 12:20 AM |
| Listing Unique directories. | deepakwins | UNIX for Dummies Questions & Answers | 2 | 01-23-2008 03:14 PM |
| Listing directories and ${1:+$1/}* | GMMike | UNIX for Dummies Questions & Answers | 5 | 01-24-2005 06:38 PM |
| files and directories listing | bbolson | UNIX for Dummies Questions & Answers | 1 | 12-11-2001 10:30 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Listing directories and sub directories
Hey there, i am trying to list all the directories and sub directories of a file system, but am having a bit of trouble.
ls -lR|grep \/|grep '^\.' >> input.dat i used this statement to list all the directories and sub directories and output them to a file when i try to print them out on the screen it works fine But when i try to put them to a output file, it doesnt work Can anyone explain me why?? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
U tried your command and it works fine. I can see the output in a file as well.
|
|
#3
|
|||
|
|||
|
It works for me fine on solaris host. Do you have a permission to create a file in this directory? Or if the file already exists - do you have permission to write to it? Maybe you have some acl set on the file?
Regards, -Oktawik. |
|
#4
|
|||
|
|||
|
Just a side note:
If I understand what you're trying to do, it would be easier to use: find . -type d ShawnMilo |
|||
| Google The UNIX and Linux Forums |