This is a discussion on Getting the list of directory names into a file within the Shell scripting forums, part of the Development/Scripting category; Hello, I am running debian linux, i want to get the list of folders in a source folder and copy ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hello,
I am running debian linux, i want to get the list of folders in a source folder and copy their names into a file.. Can somebody help me in sorting out this. |
| Sponsored Links | ||
|
|
|
||||
|
Use find command, to print the list of all dirs including subdir
Code:
find . -type d -print Code:
find . -type d -print > /path/to/file less /path/to/file Code:
find . -maxdepth 1 -type d -print
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UNIX Display or list number of files in a current directory | raj | Getting started tutorials | 1 | 12-07-2007 10:55 AM |
| Alphabetical file name and list logged in user script | oronno | Shell scripting | 5 | 08-22-2007 12:10 PM |
| list of IPs used in a subnet | raghuram | Networking, Firewalls and Security | 1 | 02-21-2007 09:07 AM |
| Windows server troubleshooting DNS problem - tools names | toor | Windows Xp/2000/2003 server administration | 8 | 07-16-2006 08:52 PM |
| error shell script no such file or directory /bin/sh | Linux software | 1 | 01-08-2006 08:34 PM | |