Is there any way, we can find files not empty? I know one can find empty files by using find with -size is equalled to 0.
Please let me know, how I can find files greater than 0 or any other size in number? (2 Replies)
I'm using the following command to zip a project file, but when it finishes, the resulting zip file contains all the directories above the file I wanted zipped, myapp.app, each one empty until you get to the actual app.
zip -r myapp.app.zip ... (0 Replies)
Hi
I'm trying to remove empty sub-folders from 1 main folder using the find method, but the "- empty" parameter isn't recognized by my Unix version.
Any idea how to implement such thing?
Thanks. (3 Replies)
Hey there!
I try to use 'find' to remove empty directories like this:
find . -depth -type d -empty -exec rm -rf {} ';'
It works just fine, but there are some directories i want to exclude.
So i tried to do sth like this:
find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Hi All,
I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both.
The value of $? is coming 0 in if part also and else part too.
#!/bin/ksh
if ]; then
echo "data"
# exit 0
echo "$?"
else... (4 Replies)
In current folder, there are many subfolders, subfolder's subfolders... under it.
How can I find out the empty folders with no files in it.
I only need the top folder list.
For example,
I have folders like below:
a/b/c
a/b/x/x.txt
a/s
a/s/y
I need get the folder a/s, but not... (6 Replies)
Hello,
I have a folder that contains all my music. Recently, I started using a different media player, and I let it manage my music folder. It has sorted all my music neatly in folders by artist and album. However, all the old folders that the songs used to be in are still there, yet they are... (2 Replies)
Hi all,
i am currently setting my windows XP environment to use with Services for Unix (NFS Client) to mount my unix file system as a network drive. However, though i could mount the unix file directory successful, but the folder is empty (which is not). Why is this so? i have imported my unix... (6 Replies)
I have an amount of folders and I want to delete only the empty ones. But I have more than 200 empty folders, so I would preffer do not delete one by one... I know it is possible, but I don't know how. I've tried with the size, using 'du' command, and saving the result in a file. After that, I made... (3 Replies)
Discussion started by: saitsug
3 Replies
LEARN ABOUT OSF1
sortm
sortm(1) General Commands Manual sortm(1)NAME
sortm - sort messages (only available within the message handling system, mh)
SYNOPSIS
sortm [msgs] [+folder] [options]
OPTIONS
Specifies the name of the header field to use when making the date comparison. If you have a special field in each message, such as Deliv-
ery-Date:, then the -datefield switch can be used to tell sortm which field to examine. If you do not give this option, the default is to
use the Date: header field. Prints a list of all the valid options to this command. Displays the general actions that it is taking to
place the folder in sorted order. The -noverbose option performs these actions silently. The default is -noverbose.
The default settings for this command are:
+folder defaults to the current folder msgs defaults to all -datefield date -noverbose
DESCRIPTION
The command sortm sorts all the messages in the current folder into chronological order according to the contents of the Date: fields of
the messages.
By default, sortm sorts all the messages in the current folder. You can select particular messages in the folder by giving a range of mes-
sages. You can also sort messages in another folder by specifying the folder name.
If sortm encounters a message without a Date: field, or if the message has a Date: field that sortm cannot parse, it attempts to keep the
message in the same relative position. However, this does not always work; for instance, if the first message encountered lacks a date
which can be parsed, then it will usually be placed at the end of the messages being sorted.
When sortm complains about a message which it cannot order, it complains about the message number prior to sorting.
PROFILE COMPONENTS
Path: To determine your MH directory
EXAMPLES
The following example sorts all the messages in the folder +meetings: % sortm +meetings The next example sorts messages 10-30 in the folder
called +test: % sortm +test 10-30
FILES
The user profile.
SEE ALSO folder(1)sortm(1)