07-20-2011
Hi,
Thanks i am not able to use nawk, it says cannot find the command , can i replace the word with any other keyword pls let know
Thanks a lot
---------- Post updated at 04:29 PM ---------- Previous update was at 04:15 PM ----------
also getting mv target /images/ is not a directory
---------- Post updated at 06:30 PM ---------- Previous update was at 04:29 PM ----------
Please help ,
My path is also having some space inbetween , how to ignore and copy the files from the path to a given folder. Kindly help
http://elib.com/SHC/SP%20Pages/SP%20...06460_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06462_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06463_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06464_0001.jpg http://elib.com/SHC/SSP%20Pages/SP%2...06468_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06469_0001.jpg
Thanks ,
Waiting for your reply
---------- Post updated 07-20-11 at 11:27 AM ---------- Previous update was 07-19-11 at 06:30 PM ----------
Hi,
Hi,
Thanks i am not able to use nawk, it says cannot find the command , can i replace the word with any other keyword pls let know
Thanks a lot
---------- Post updated at 04:29 PM ---------- Previous update was at 04:15 PM ----------
also getting mv target /images/ is not a directory
---------- Post updated at 06:30 PM ---------- Previous update was at 04:29 PM ----------
Please help ,
I am in an urgent need, Please help
My path is also having some space inbetween , how to ignore and copy the files from the path to a given folder. Kindly help
http://elib.com/SHC/SP%20Pages/SP%20...06460_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06462_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06463_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06464_0001.jpg http://elib.com/SHC/SSP%20Pages/SP%2...06468_0001.jpg http://elib.com/SHC/SP%20Pages/SP%20...06469_0001.jpg
Thanks ,
Waiting for your reply
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: lalelle
2 Replies
2. UNIX for Advanced & Expert Users
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)
Discussion started by: Bashar
2 Replies
3. Shell Programming and Scripting
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies
4. Shell Programming and Scripting
hello, I need to build a shell script that receives the folder to copy by parameter and copy all files except thumb.db to another folder and rename them like, file.jpg renamed to file_bb1.jpg.
can someone help me
Thanks (4 Replies)
Discussion started by: zeker
4 Replies
5. Shell Programming and Scripting
Hi, all:
I've got two folders, folder A contains some image files (say, 100 files) in .jpg format;
folder B contains all description files (say, 500 files) in .txt format.
All image files in folder A are able to find their corresponding description files in folder B.
That is to say,... (3 Replies)
Discussion started by: jiapei100
3 Replies
6. Shell Programming and Scripting
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)
Discussion started by: cgkmal
2 Replies
7. Shell Programming and Scripting
Hello!
Please, help me to find or write this simple bash-script.
I have first folder
/tmp/work/folder1
with such files:
name1.txt
name2.txt.1
name2.txt.2
name3.txt
name4.txt
name4.txt.1
name4.txt.2
name4.txt.3
etc..
I need to copy all files from folder1
to folder... (1 Reply)
Discussion started by: optik77
1 Replies
8. Shell Programming and Scripting
Hi all,
cp -r /tmp/Agent/* /apps/opt/Agent/TEST
When I copy files under /tmp/Agent using this command Files are getting copied to Agent folder also but I need only in the TEST folder.
Is there any way to fix this issue??\
Thanks in advance
Ananth (4 Replies)
Discussion started by: Ananthdoss
4 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: arijitsaha
6 Replies
10. Shell Programming and Scripting
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
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)