09-09-2010
Thanks, but it is not working. It just writes mv commands but not executing. Let me know what might have occurred
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a folder name as postscript folder and it contains the following postscript files.
package1.ps
package2.ps
package3.ps
when i am renaming all the ps files to xps files by using the following command
mv /postscript/*.ps /postscript/*.xps
Then i am getting the... (4 Replies)
Discussion started by: sunitachoudhury
4 Replies
2. UNIX for Advanced & Expert Users
Guys, i need to replace a particular pattern in lots of files in a folder with another pattern . Is there any command line script I can use to do the functionality.
Eg: aalex > ls
green_1234_colour.max
red_1234_pen.max
yellow1234flower.max
Need to replace the 1234 in the file name with 9876... (4 Replies)
Discussion started by: appualex
4 Replies
3. Shell Programming and Scripting
I splited a file into parts, then i wrote a script to convert the format of the file names to this: part1.dat part2.dat
but I wonder why part.dat is also created knowing that the k variable starts from 1
rm -f part*
$(split -b $1 file.1 part_)
set k = 1
for i in $(ls part_*)
do
mv -f... (1 Reply)
Discussion started by: saman_glorious
1 Replies
4. Shell Programming and Scripting
Hi ,
Need help to rename the files in a folder. The .xml needs to be removed from the middle and appended to the end as in the example shown .
Example From:
TestMessage.xml2010-10-19_20_21_08
TestMessage.xml2010-10-20_20_21_09
TestMessage.xml2010-10-21_20_21_08... (4 Replies)
Discussion started by: sree_chari
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am trying to change the XML filename in a folder to the rootelement in the XML file.
Example: TestMsg2010-10-19_20_20_54.xml
<?xml version="1.0" encoding="utf-8" ?>
<R1Msg TimeStamp="2010-10-19T08:49:08.000000Z>
<TestRec>
<ID>1000</ID>
</TestRec>
</R1Msg>
Wanted to extract the... (8 Replies)
Discussion started by: sree_chari
8 Replies
6. Shell Programming and Scripting
Hello,
I want to rename more than 100 files. These files have "?" in there existing file name but I want to rename files to there first part before "?" token. I have tried using for loop but it isn't working so help following is the sample filename and for loop that am trying to use:
example of... (3 Replies)
Discussion started by: ls_lrta
3 Replies
7. UNIX for Dummies Questions & Answers
Hi, Hope someone can help... I'm pretty much new to unix and can only do basic commands.
I have an issue where by every day I need to schedule a job to look in a folder with a name format of .IP. will be different each day (when the day is over the folder extension changes), and rename any... (5 Replies)
Discussion started by: Harsharan
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have 1000 *.txt files in a folder and I would like to rename them data1.txt through data1000.txt. The order does not matter or the names of the initial input files. How would I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
9. Shell Programming and Scripting
hello
does someone want to help me for this one ?
i want to rename files & a folder according to the similarities in filenames
for example :
the file with the good name
cglogo tougl1953 dgmel bogd 01 -- ttgductoog ggdté gollogtd.ext1the others files needed to be renamed
cglogo... (5 Replies)
Discussion started by: mc2z674gj
5 Replies
10. Shell Programming and Scripting
how to add a text ( surya) at the beginning of a text files (so many) in folder
text file:
111111
555555
666666
result:
surya
111111
555555
666666 (3 Replies)
Discussion started by: suryanarayana
3 Replies
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)