10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I find and print the directories on a server that have more than 5,000 files? There's some spam emails and I'm trying to find all directories that have a lot of spam
The file count should just be the files directly under that directory, not like the total from all nested directories
... (1 Reply)
Discussion started by: vanessafan99
1 Replies
2. Shell Programming and Scripting
Hello all!
I'm looking to list directories and sub-directories of a path, on this forum I found this command:
find $path -type d -exec ls -ld {} \;
The issue I have is that with a simple ls, the list is listed by name, and using -t I get it by time.
How could I list directories and sub... (5 Replies)
Discussion started by: nomadvisuals
5 Replies
3. Shell Programming and Scripting
I'm looking for a script which outputs the list of directories and sub directories from root level consisting of specific files. For instance I want shell script to list all the directories and subdirectories containing .txt files.:wall: (4 Replies)
Discussion started by: super210
4 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. Shell Programming and Scripting
Hi all,
can any one help me out in this:::
basically i need to list all the contents in all files in all directories (starting from root and then onwards)...i will get the session saved in a file (just a secure CRT, etc)
seems to be a simple one.
if anyone can come forward, its really... (4 Replies)
Discussion started by: asadlone
4 Replies
6. 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
7. 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
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. Shell Programming and Scripting
Please provide me a shell script so that i can list which file or directory has been deleted, by which user and at what time. The script should take date as argument and should list out name of the file/directory, which user had deleted them and at what time since that particular date. Kindly post. (1 Reply)
Discussion started by: raviviolet13
1 Replies
10. 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