dear all,
i want to copy all files in my home dir to another.
from my home dir i have given ls -la then
some hidden files are there with dot . .. and i also want to copy all dirs in my home as it is . because iam upgrading the system
how to copy all files and dirs in my home dir... (1 Reply)
For example,
/tmp/folder1
includes /tmp/folder1/a /tmp/folder1/b
/tmp/folder2
includes /tmp/c
Is there a command without removing files in /tmp/folder2 first to copy the /tmp/folder1 to /tmp/folder2?
and the result should be
/tmp/folder2 will include only /tmp/folder2/a... (2 Replies)
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Hi everyone,
when I try to copy *.gz files run cp within the correct source folder it works as follow:
Source folder = C:/Documents and Settings/user/Recent papers/2771/
Destination folder = C:/Documents and Settings/user/My documents/1532/temp
cp *.gz "C:/Documents and Settings/user/My... (2 Replies)
Ok question number two: I'd like to search a directory for multiple file types (rar, txt, deb) and depending on what's found, copy those files to folders named Rar, TextFiles, and Debs. I'm looking for speed here so the faster the script the better. I want it to be a function that I pass 1 argument... (4 Replies)
I have a text file which contains lines in this format - it contains 105 lines in total, but I'm just putting 4 here to keep it short:
58571,east_ppl_ppla_por
58788,east_pcy_hd_por
58704,east_pcy_ga_por
58697,east_pcy_pcybs_por
It's called id_key.txt
I have a sample folder called... (9 Replies)
Hi ,
I have a file like this, i need to trace its path and copy the files from its path to one folder. I need to replace elib.com,melib.com to F:\.Here i need to copy to a folder called image. Please help
http://elib.com/SHC/NLNLHB/020001498.pdf ... (4 Replies)
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should... (1 Reply)
Hi,
I have a folder which contains some files like this.
bin.000001
bin.000002
bin.000003
bin.000004
bin.000005
bin.000129
bin.index
I want to copy all these files to a new folder except the last files.
Please provide some ideas.
Please use next time code tags for your code... (6 Replies)
Hello All
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies
LEARN ABOUT OSF1
refile
refile(1) General Commands Manual refile(1)NAME
refile - file message in other folders (only available within the message handling system, mh)
SYNOPSIS
refile [msgs] [+folder] [options]
OPTIONS
Refiles the draft message, or the current message in your +drafts folder, if you have one set up. You cannot give a msgs argument when you
use this option. 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. Prints a list of the valid options to this command. Keeps a
copy of the message in the source folder. Normally, refile 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. 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. Specifies the source
folder to take messages from. Normally, messages are refiled from the current folder into another folder. However, you can take mes-
sages from a different folder by using the -src +folder option to specify the alternative source folder.
DESCRIPTION
Use the refile 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 num-
ber 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 mes-
sage numbers, or a message sequence. See mark(1) 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, refile will also
define those sequences for the destination folders. See mh_profile(4) for information concerning the previous sequence.
PROFILE COMPONENTS
Path: To determine your Mail directory
Folder-Protect: To set protections when creating a new folder
rmmproc: Program to delete the message
EXAMPLES
The following example refiles messages 3 and 5 in the folder +records: % 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 +test folder. The mes-
sage remains in the current folder as well as appearing in the +test folder. % refile -link 13 +test The next example takes a message from
the folder +test when it is not the current folder, and places it in the folder +outbox: % refile 3 -src +test +outbox
FILES
The user profile.
SEE ALSO folder(1), mark(1), mh_profile(4)refile(1)