Thank you for the suggestion! That worked great other than one small issue....it takes the archive folder itself and all of its contents and places them under the newarchive folder.
IE:
before the move
/names/company1/archive/<a bunch of subfolders>
/names/company1/newarchive/
after the move
/names/company1/archive/
/names/company1/newarchive/archive/<a bunch of subfolders>
I need it to take the contents of the archive folder and move them to the newarchive folder.
IE:
before the move
/names/company1/archive/<a bunch of subfolders>
/names/company1/newarchive/
after the move
/names/company1/archive
/names/company1/newarchive/<a bunch of subfolders>
Thank you!
---------- Post updated at 09:27 AM ---------- Previous update was at 08:12 AM ----------
BTW, I fixed the issue I pointed out by making these simple changes:
Last edited by vipertech; 08-01-2014 at 09:29 AM..
Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum.
I have already checked in folders in subversion named
HTT01,... HTT21.. and have files in each folder like below:
HTT01/HTT01_00000.hex
HTT01/HTT01_00000_fb_result.hex... (2 Replies)
Hi All,
I am new to Forums, as i am struggling for one script i am launched here.
I need to move more than 60,000+ folders in 1,00,000 folders to another server. I have the list of folders which should be moved. can anybody help me in sharing with the script for the above requirement.
... (4 Replies)
I'm new at this, so bare with me.
I'm looking to move some folders, but keep the tree intact.
Example:
I have hundreds of folders in one directory (parent directory). In each folder there is a one folder called "source" and about 10 files. I want to move all the "Source" directories... (4 Replies)
I have a more than 10 K files in a folder. They are accumulated in a period of more than an year (Say from 13th July 2010 to 4th June 2011). I need to perform housekeeping on this. The requirement is to create a folder like 13Jul2010,14July2010,......3June2011,4June2010 and then from the main... (2 Replies)
Hello all,
I have a Cyrus IMAP server running on HP-UX. I have a requirement to run a script every night at midnight, which will take all the mail (read and unread mail) from one IMAP folder, and move it into a different IMAP folder. Both the source and destination IMAP folders belong to the... (1 Reply)
Hello!
I am new to this. I have many files from b_ap00 to b_ap80, and I need to move them to folder 00 to 80 respectively, where b_ap00 is in folder 00, b_ap01 is in folder 01.
On top of this, I need to rename the file once they are inside the folder to b_ot, and subsequently run it (ifort -o... (8 Replies)
I'm trying to get a script to iterate of an array in bash run a series of commands in those folders.
#Folder names
folders=(folder1 folder2 folder3)
#Common path for folders
fold_path="/Users/Rich/Projects/"
# For each element array copy script to folder and execute
for f in... (2 Replies)
I recently bought Synology server and realised it can run scripts. I would need fairly simple script which moves all files and folders from ARCHIVE folder to WORKING folder. I would also need to maintain folder structure as each of the folders may contain subfolders. How would I go about it as I am... (1 Reply)
Hi,
i need to move the decimal point from a file listing some numbers like this :
49899.50
49914.55
49894.48
49939.65
49879.44
49919.57
49934.62
49944.67
49954.72 (1 Reply)
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
LEARN ABOUT HPUX
elf_rand
elf_rand(3E)elf_rand(3E)NAME
elf_rand - random archive member access
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
and manipulate simple object files and archives. elf is an ELF descriptor previously returned from
provides random archive processing, preparing elf to access an arbitrary archive member. elf must be a descriptor for the archive itself,
not a member within the archive. offset gives the byte offset from the beginning of the archive to the archive header of the desired mem-
ber. See elf_getarsym(3E) for more information about archive member offsets. When works, it returns offset. Otherwise it returns 0,
because an error occurred, elf was null, or the file was not an archive (no archive member can have a zero offset). A program may mix ran-
dom and sequential archive processing.
EXAMPLES
An archive starts with a ``magic string'' that has bytes; the initial archive member follows immediately. An application could thus pro-
vide the following function to rewind an archive (the function returns -1 for errors and 0 otherwise).
#include <ar.h>
#include <libelf.h>
int
rewindelf(Elf *elf)
{
if (elf_rand(elf, (size_t)SARMAG) == SARMAG)
return 0;
return -1;
}
SEE ALSO ar(4), elf(3E), elf_begin(3E), elf_getarsym(3E), elf_next(3E).
elf_rand(3E)