rmm(1) General Commands Manual rmm(1)NAME
rmm - remove messages (only available within the message handling system, mh)
SYNOPSIS
rmm [+folder] [msgs] [-help]
OPTIONS
Prints a list of the valid options to this command.
The default settings for this command are:
+folder defaults to the current folder msgs defaults to the current message
DESCRIPTION
The rmm command deletes the current message from the current folder.
You can specify messages and folders other than the current ones by using the +folder and msgs arguments.
The current message is not changed by rmm, so a next will advance to the next message in the folder as expected.
If you have defined a component rmmproc: in your file, then instead of simply renaming the message file, rmm will call the named program to
delete the file.
The rmm command removes messages by renaming the message files with a preceding comma. Many sites consider files that start with a comma to
be a temporary backup, and arrange for cron(8) to remove such files once a day.
PROFILE COMPONENTS
Path: To determine your Mail directory
rmmproc: Program to delete the message
FILES
The user profile.
SEE ALSO rmf(1)rmm(1)
Check Out this Related Man Page
RMM(1) [nmh-1.5] RMM(1)NAME
rmm - remove messages
SYNOPSIS
rmm [+folder] [msgs] [-unlink | -nounlink] [-version] [-help]
DESCRIPTION
By default, rmm will remove the specified messages by renaming each of the message files with a site-dependent prefix (usually a comma).
Such files will then need to be removed in some manner after a certain amount of time. Many sites arrange for cron to remove these files
once a day, so check with your system administrator.
Alternately, if you wish for rmm to really remove the files representing these messages, you can use the -unlink switch. But messages
removed by this method cannot be later recovered.
If you prefer a more sophisticated method of `removing' messages, you can define the rmmproc profile component. For example, you can add a
profile component such as
rmmproc: /home/foouser/bin/rmm_msgs
then instead of simply renaming the message file, rmm will call the named program or script to handle the files that represent the messages
to be deleted.
Some users of csh prefer the following:
alias rmm 'refile +d'
where folder `+d' is a folder for deleted messages, and
alias mexp 'rm `mhpath +d all`'
is used to "expunge" deleted messages.
The current message is not changed by rmm, so a next
will advance to the next message in the folder as expected.
FILES
$HOME/.mh_profile The user profile
PROFILE COMPONENTS
Path: To determine the user's nmh directory
Current-Folder: To find the default current folder
rmmproc: Program to delete the message
SEE ALSO refile(1), rmf(1)DEFAULTS
`+folder' defaults to the current folder
`msgs' defaults to cur
`-nounlink'
CONTEXT
If a folder is given, it will become the current folder.
BUGS
Since refile uses your rmmproc to delete the message, the rmmproc must NOT call refile without specifying -normmproc, or you will create an
infinte loop.
MH.6.8 11 June 2012 RMM(1)
Hi Gurus, Experts,
I am facing a problem to concatenate all the files based on timeStamps.
The Problem is like this .
The are many files in a folder Which are of the below types
Ack_to_MDS_20070809141159.xml
Ack_to_MDS_20070809141157.xml
Ack_to_MDS_20070809141155.xml... (19 Replies)
Hi Guys,
I have 5000 files in a folder. all are .DAT files.
I want to rename them as .TXT files.
I tried the following command.
mv *.DAT *. TXT
But it is throwing an error. Can you please tell me what am i doing wrong.
Thanks & Regards,
Magesh. (11 Replies)
I have a folder that contains about 690k files and I need to change their permissions. The challenge is, I have no telnet access and the GUI FTP manager via cpanel just simply fails. I tried doing it via command line ftp but that too, fails saying 'no such file or directory'.
My last resort is... (11 Replies)
Hi Guys,
I have about 12000 files in a folder and I want to copy these to another folder. I am using the cp command to do this but it errors out saying cp -- argument list too long.
Is there any way to get around this?
I don't want to do a mv but use only cp.
Thanks (9 Replies)
I'm trying to compare 1 file(the boiler plate file we'll call it) against others in the same folder. I need to see if the other files have extra keys in them. i.e. - the other files should have the same amount of variables as found in boiler plate file
File1.txt format:
----beginning of... (9 Replies)
In one directory,I have 4 folders with names as version numbers as 1.0.0.11 1.0.0.12 1.0.0.13 1.0.0.13a
I have to keep the latest one and delete the older ones.I can't use code to delete the files that are n days old as these folders can be of same day...1 day before or 2 mnths before...
Can... (12 Replies)
I haven’t used Unix in over 25 years … and so I am at a loss for something that should be very simple. I have a lot of jpeg files (i.jpg) of students in a yearbook.. I also have an array name(i) of their names. I need to rename each “i.jpg” to “name(i).jpg”. I believe the ksh script... (11 Replies)
Hi
Having many filenames in a folder containing the string "-DATE" (e.g. : Nbr_Name-DATE_2011.txt). I would like to remove the "-DATE" in each filename to get just: Nbr_Name_2011.txt . Know its easy but somehow it wont work. Tried it like that:
for i in `ls *-DATE*`; do mv "$i"... (10 Replies)
How can i override options of rm command ??
and how can i implement my own options
when we delete file using rm commad it will not delete file it has to move some folder....plz suggest some solution. (10 Replies)
In folder there are files
(eg ABS_18APR2012_XYZ.csv
DSE_17APR2012_ABE.csv) .
My requirement is to delete all the files except today's timestamp
I tried doing this to list all the files not having today's date timestamp
#!/bin/ksh
DATE=`date +"%d%h%Y"`
DIR=/data/rfs/... (9 Replies)
Hi,
I have a query:
I have a bunch of files starting letter with 'a'
(example: abhi,all,anand,animal,a1.txt,allow.java,a*)
here i want to delete/remove only a* folder but not other files and folders. and a* folder is present in so many other folders.
what is unix command to delete... (9 Replies)
hi!
Iam using my D-link DNS-320 (NAS) with fun_plug installed (a unix client)
I am currently using cron to run a shellscript running a java-application that creates a couple of txt files.
These files needs to be uploaded to a specific folder on my webhosts ftp server-account.
I need a... (16 Replies)
We have a folder XYZ with large number of files (>350,000). how can i split the folder and create say 10 of them XYZ1 to XYZ10 with 35,000 files each. (doesnt matter which files go where). (12 Replies)
Hi Gurus,
I need to remove comma from first and last line. I tried below code, but no luck. It only remove first line.
Gurus, please help.
awk -F"," '{if(NR==1||NR==$NR) print $1; else print $0}' TEST
sampe file:
ABC HEADER TOTAL RECORDS ARE 2.00,,,,... (13 Replies)
Good evening.
because the folder has thousand of files it takes too long and have some trouble to get the largest files and then compress files or delete it, for instance
find . -size +10000000c -exec ls -ld {} \; |sort -k5n | grep -v .gz
The above commad took an hour and i have to cancel... (10 Replies)