08-23-2011
want to move set of file from one folder to another folder
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
Discussion started by: MeganP
3 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Discussion started by: sollins
1 Replies
3. Shell Programming and Scripting
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies
4. Shell Programming and Scripting
Hello guys
I am sure that you will help me on this issue as you did earlier::)
Scenario :
I have a folder named "XYZ". It consist many sub-folders and subfolder contain severals files. there may be abc.dat in each subfolder. Now i want to seperate subfolders on follwing conditions-
if abc.dat... (12 Replies)
Discussion started by: infiant
12 Replies
5. Shell Programming and Scripting
Dear Experts,
I need to connect to a FTPS Server and move the files from FTPS folder "/SAP/Out" to Unix directory "/SAP/In". I need to run this script on Unix directory...Script should get the files from FTPS folder and place that in specified Unix Directory.
Thanks In Advance. (1 Reply)
Discussion started by: phani333
1 Replies
6. Shell Programming and Scripting
Hi,
I need a little help with this one; Let's say I have two directories
/dir1/dir2/dir3old and /dir1/dir2/dir3new
Within dir3old and dir3new are many folders, each containing some files. How can I search all the sub folders in dir3old for files of a specific date and move the files to the... (1 Reply)
Discussion started by: bbbngowc
1 Replies
7. Shell Programming and Scripting
Hi All,
I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip.
This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
Discussion started by: peekuabc
9 Replies
8. Shell Programming and Scripting
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies
9. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
10. Shell Programming and Scripting
The below bash executes but nothing is copied. I am trying to cp or mv the matching .pdf to the corresponding folder. There will always be a matching .pdf found but the number of folders may vary. The portion in red is what is used to match the .pdf--- variable $pdf to the folder--- variable... (11 Replies)
Discussion started by: cmccabe
11 Replies
LEARN ABOUT ULTRIX
mhpath
mhpath(1mh) mhpath(1mh)
Name
mhpath - print full pathnames of MH messages and folders
Syntax
mhpath [ +foldername ] [ msgs ] [ -help ]
Description
Use the command to display the full pathname of the specified folder. If you do not specify a folder, displays the pathname of the current
folder.
If you specify a message with its message number, displays the pathname of the specified message. You can also specify a number of mes-
sages, or a range of messages. If the top of the range that you specify is greater than the last message in the folder, displays as much
of the specified range as possible.
Additionally can take a keyword or a sequence name. The following keywords are acceptable:
first The first message in the folder.
last The last message in the folder.
new The message after the last message in the folder. You cannot use new as part of a message range.
cur The current message in the folder.
prev The message before the current message.
next The message after the current message.
all All of the messages in the folder.
Options
-help Prints a list of the valid options to this command.
Examples
In the following example, displays message 3 in the folder
% mhpath +inbox 3
/r/phyl/Mail/inbox
The following example displays the pathname of messages 2 to 5 in the current folder:
% mhpath 2-5
/r/phyl/Mail/inbox/2
/r/phyl/Mail/inbox/3
/r/phyl/Mail/inbox/4
/r/phyl/Mail/inbox/5
Profile Components
Path: To determine your Mail directory
Files
The user profile.
See Also
folder(1mh)
mhpath(1mh)