11-07-2009
If I need find out all current folder, which only include empty subfolders, but no any files.
such as:
./a/b/c (all subfolders, no files)
./a/x/b.txt (has on file)
So how to list the first folder ./a ?
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
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. 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
7. 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
8. 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
9. 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
10. 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
rmf(1mh) rmf(1mh)
Name
rmf - remove folder
Syntax
rmf [ +folder ] [ -help ] [ -[no]interactive ]
Description
The command removes all of the messages within the current folder, and then removes the folder itself. If there are any files within the
folder which are not part of MH, they are not removed, and an error message is displayed.
You can specify a folder other than the current folder by using the +folder argument. If you do not specify a folder, and cannot find the
current folder, asks you whether you want to delete instead.
If the current folder is removed, it makes current.
Note that the command irreversibly deletes messages that do not have other links, so use it with caution.
If the folder being removed is a sub-folder, the parent folder becomes the new current folder, and tells you that this has happened. This
provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current
folder from which the list was extracted.
Using to delete a read-only folder deletes the private sequence and current message information from the file, without affecting the folder
itself. If you have sub-folders within a folder, you must delete all the sub-folders before you can delete the folder itself.
Options
-help Prints a list of the valid options to this command.
-interactive
-nointeractive
Asks for confirmation before deleting a folder. By default, deletes a folder and its messages without asking for confirmation.
If you specify the -interactive option, asks if you are sure before deleting the folder. You are advised to use this option,
since when deletes a folder its contents are lost irretrievably.
Examples
This example shows how asks for confirmation when the -interactive option is used:
% rmf -interactive +test
Remove folder "test"? y
Profile Components
Path: To determine the user's Mail directory
Files
The user profile.
See Also
rmm(1mh)
rmf(1mh)