Dear All,
I have many sub-folders but each of them have a file with same name but different data.
I want to either move or copy them into a new folder but they need to have the path of where they are coming as part of their name...
I have managed to find the files but dont know how to change the name
I have tried the loop but dont face the same problem
can someone help me plz?
Hi,
i'm new here (and to scripting too).
I was hoping for some help in comparing two files.
i have a file called 'file1' with a list of names in the following format:
adam jones
paul higgins
kelly lowe
i also have another file which may contain some of the names but with a lot of... (4 Replies)
Hi,
I am new to scripting, so any help on this would be much appreciated.
I am trying to rename a bunch of files, taking the names sequentially from a list read in another file...
# ls oldnames
file_1
file_2
file_3
# cat names
red
yellow
green
I want the files to take on the... (6 Replies)
Hi all,
I am new to unix and wanted to replace the string consisting \ with nothing.
I tried the following but did not help.
for y in `ls DIV*`;
do
sed s/C:\\Project\\AML\\bin//g $y > temp
mv temp $y
done
I actually want to remove any occurance of C:\Project\ABC\bin in... (4 Replies)
How do i find files in more than one directory? I searched through forums, but could not land into the right thread.
I tried something like
find dir1|dir2 -name file1
but it doesn't work. Please suggest. (5 Replies)
Hi all
Right, Im a little bit thick when it comes to SAN :-) IVe got a dual port qlc in a solaris 10 server. Its all connected and I can see a number of disks. The SAN guy here has asked me about preferred paths, i.e. as the dual ports are connected to two fabrics, etc device will have 4... (2 Replies)
I have 100+ python files in a single directory. I need to replace a specific path occurrence with a variable name.
Following are the find and the replace strings:
Findstring--"projects\\Debugger\\debugger_dp8051_01\\debugger_dp8051_01.cywrk"
Replacestring--self.projpath
I tried... (5 Replies)
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
I wasn't sure which forum to post this in. I am trying to compile logsurfer. After I run configure and the make, I get a complaint that paths.h is not found. I see three places where there is a paths.h:
/usr/include/pgsql/server/optimizer/paths.h... (3 Replies)
I am trying to do in a single line to take a list of paths separated by whitespace and then loop thru all the paths that were wrote but my regex is not working,
I have
echo {3} | sed 's/ //g' | while read EACHFILE
do
.....
But for some reason is only taking always the first path that I... (7 Replies)
i have some script with some paths inside it. The idea is to some files which is on desktop copy and move to another location. Problem is that inside script is similar to this:
cp test1.zip /root/help/
because I allways have another zip files, does it possible to have some input which ask me... (18 Replies)
Discussion started by: tomislav91
18 Replies
LEARN ABOUT ULTRIX
refile
refile(1mh)refile(1mh)Name
refile - file message in other folders
Syntax
refile [ msgs ] [ +folder ] [ options ]
Description
Use the command to move the specified message from the current folder to another folder. You can refile messages in more than one folder
by giving multiple folder names as arguments.
If you do not specify a message, the current message is refiled. You can refile a message other than the current message by giving its
number as a msgs argument. You can also refile more than one message at a time by specifying more than one message number, or a range of
message numbers, or a message sequence. See for more information on sequences.
The current folder remains the same unless the -src option is specified; in that case, the source folder becomes current. Normally, the
last message specified becomes the current message. However, if the -link option is used, the current message is not changed.
If the Previous-Sequence: entry is set in the file, in addition to defining the named sequences from the source folder, will also define
those sequences for the destination folders. See for information concerning the previous sequence.
Options-draft Refiles the draft message, or the current message in your folder, if you have one set up. You cannot give a msgs argument when
you use this option.
-file filename
Moves a file into a folder. This option takes a file from its directory and places it in the named folder, as the next message
in the folder. The file must be formatted as a legal mail message. This means that the message must have the minimum header
fields separated from the body of the message by a blank line or a line of dashes.
-help Prints a list of the valid options to this command.
-link
-nolink Keeps a copy of the message in the source folder. Normally, removes the messages from the original folder when it refiles them.
The -link option keeps a copy in the original folder, as well as filing a copy in the new folder.
-preserve
-nopreserve
Preserves the number of a message in the new folder. Normally, when a message is refiled in to another folder, it is set to the
next available number in that folder. The -preserve option keeps the number of the message the same in the new folder as it had
been in the old.
You cannot have two messages with the same number in one folder, so you should use this option with care.
-src +folder
Specifies the source folder to take messages from. Normally, messages are refiled from the current folder into another folder.
However, you can take messages from a different folder by using the -src +folder option to specify the alternative source folder.
Examples
The following example refiles messages 3 and 5 in the folder
% refile 3 5 +records
The next example files the current message into two folders:
% refile +jones +map
The next example takes message 13 in the current folder and refiles it in the folder. The message remains in the current folder as well as
appearing in the folder.
% refile -link 13 +test
The next example takes a message from the folder when it is not the current folder, and places it in the folder
% refile 3 -src +test +outbox
Profile Components
Path: To determine your Mail directory
Folder-Protect: To set protections when creating a new folder
rmmproc: Program to delete the message
Files
The user profile.
See Alsofolder(1mh), mark(1mh), mh_profile(5mh)refile(1mh)