11-10-2007
Create a file (dirfile) containing a list of the directories you want to copy to, one per line
and then use a simple shell script to batch copy the file i.e.
#! /bin/sh
while read DIR
do
cp file $DIR
done < dirlist
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
Discussion started by: ken2834
3 Replies
2. UNIX for Dummies Questions & Answers
Hello-
I need to copy a file into multiple directories, and each directory's sub-directories (of which there are 5)
Currently, the parent directory is set up like this:
dir1
sub-dir1
sub-dir2
sub-dir3
sub-dir4
sub-dir5
dir2
sub-dir1
sub-dir2
sub-dir3
... (1 Reply)
Discussion started by: penlok
1 Replies
3. Shell Programming and Scripting
I would like to find and backup all *.mp4 files from /Pictures and its sub-directories and move them to a single directory on a remote. I can find and move the files but I don't want the directory structure...just the files to be placed in a single remote directory.
To find my files I use
... (1 Reply)
Discussion started by: wreckedred
1 Replies
4. Shell Programming and Scripting
Hello,
I have a small question and i hope someone can help me, if i have 200 domains directories in my server under this directory
something like
now how i can copy one folder i have to this directories?
Thank You (5 Replies)
Discussion started by: GamGom
5 Replies
5. Shell Programming and Scripting
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
6. Shell Programming and Scripting
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies
7. UNIX for Dummies Questions & Answers
Hi All Genious,
I want to copy a file name XYZ .In a directory /HOME/dir/IXOS1/dir1
which contain multiple directories named not in pattern want to copy the XYZ in all of the directories available on path /HOME/dir/IXOS1/dir1 .
Thanks in advance . (2 Replies)
Discussion started by: mumakhij
2 Replies
8. Shell Programming and Scripting
Hi ,
I want a script to create a directories at different locations.
suppose i am on home/path/zone1. I want to create a directory of current month in this location.
Then i want to create the same current month directory in home/path/zone2.like this for 9 diffrent zones.
I can do this... (4 Replies)
Discussion started by: sv0081493
4 Replies
9. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
10. UNIX for Beginners Questions & Answers
Dear all
I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies
LEARN ABOUT DEBIAN
gst-package
GST-PACKAGE(1) User Commands GST-PACKAGE(1)
NAME
gst-package - create and install GNU Smalltalk .star package files
DESCRIPTION
Usage:
gst-package [OPTION]... ARGS...
Operation modes:
--install
make or install STAR packages (default)
--uninstall
remove the packages mentioned in the FILES
--dist copy files instead of creating STAR files.
--prepare
create configure.ac or Makefile.am
--list-files PKG
just output the list of files in the package
--list-packages
just output the list of packages in the files
--download, --update
download package from smalltalk.gnu.org or from its specified URL
--help display this message and exit
--version
print version information and exit
Common suboptions:
-n, --dry-run
print commands without running them
--srcdir DIR
look for non-built files in directory DIR
--distdir DIR
for --dist, place files in directory DIR
--destdir DIR
prefix the destination directory with DIR
--target-directory DIR
install the files in DIR (unused for --dist)
-I, --image-file=FILE
load into the specified image
--kernel-dir=PATH
use the specified kernel directory
-v, --verbose
print extra information while processing
--install suboptions:
--test run unit tests after merging
--load also load the Smalltalk files in the image
--list-files suboptions:
--load only list files that are filed in when loading
--test with --load, also include unit test files
--vpath
Omit path to srcdir for files that are there
--dist suboptions:
--all-files
Process all files, not just non-built ones
--copy Do not create symbolic links
All operation modes except --download (or its synonym --update) accept paths to package.xml files or .star files, including remote URLs.
--download and --update accept names of packages, which will be searched in the current system or on smalltalk.gnu.org) or URLs to pack-
age.xml or .star files.
Except in uninstall and list files mode, gst-package requires write access to the GNU Smalltalk image directory, and merges the XML package
files on the command line with that file.
The default target directory is /build/buildd-gnu-smalltalk_3.2.4-2-amd64-LVoFQd/gnu-smalltalk-3.2.4
SEE ALSO
The full documentation for gst-package is maintained as a Texinfo manual. If the info and gst-package programs are properly installed at
your site, the command
info gst
should give you access to the complete manual.
gst-package version 3.2.4 December 2011 GST-PACKAGE(1)