10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
How to list directories that are non-empty and non-hidden
Thanks in advance (2 Replies)
Discussion started by: kinny
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to get the following output:
-(0)
/home/<user-name>-(1)
..........a-(2)
....................codetest-(3)
..............................oracle-(4)
..............................unix-(5)
........................................dir1-(6)
... (4 Replies)
Discussion started by: qasim
4 Replies
3. Shell Programming and Scripting
How can list the directories and the subdirectories in a folder. It is possible with a single UNIX command.
For example i have a folder named "archive" and another folder named "0808" and then multiple folders are there ...
Can i list all the directories and subdirectories in the folder... (6 Replies)
Discussion started by: karansachdeva
6 Replies
4. Shell Programming and Scripting
ls lists all files and sub directories in the current directory
but how to list only the sub directories and not the files? (2 Replies)
Discussion started by: bbala
2 Replies
5. UNIX for Dummies Questions & Answers
Hi
When im listing (ls -al ) its listing directories without / at the end of directories
dir1 dir2 dir3
and i need to list directories with
dir1/ dir2/ dir3/ and this should not be made by command ls -F
/ should be embedded at the last
since one of the scripts reads... (10 Replies)
Discussion started by: vasanthan
10 Replies
6. UNIX for Advanced & Expert Users
Hi
When im listing (ls -al ) its listing directories without / at the end of directories
dir1 dir2 dir3
and i need to list directories with
dir1/ dir2/ dir3/ and this should not be made by command ls -F
/ should be embedded at the last
since one of the scripts reads directories... (1 Reply)
Discussion started by: vasanthan
1 Replies
7. UNIX for Advanced & Expert Users
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... (3 Replies)
Discussion started by: jinxor
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Simple question.
If i could find a file been listed in many dirctories, how to get the unique list of directories.
find / -name "abc*" --> will give me list of directories.
/home/abc.txt
/home/ddd/abcd.txt
/home/ddd/abcde/txt
So how to get
/home
/home/ddd
Thanks in... (2 Replies)
Discussion started by: deepakwins
2 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have 2 questions:
Q1 - What does
${1:+$1/}*
mean? I guess it lists all files in current directory - Could any one explain how this expression works?
Q2 - I am trying to list directories only in current path - I know that ls could be used but I thought I'd give find a try. I need to... (5 Replies)
Discussion started by: GMMike
5 Replies
10. UNIX for Dummies Questions & Answers
Hello:
I need to list some files into some directories ordered by size.
i need help!
BEst regards
Alberto (1 Reply)
Discussion started by: bbolson
1 Replies