In the TESTrun directory, try this manually to see if it works in general as expected:
If the result is OK, and assuming all directories starting with fd do not contain any whitespaces, you can do the rest via for loop:
So tried:
cp -r -p test1/ user@machine:///srv/www/vhosts/domain.co.uk/httpdocs/backup/
but this didn't work either :(
Anyone able to help with this?
Many thanks
Mr M (3 Replies)
i have users home directories in /home
all the users have some files starting with character e
and i want to copy all these files in a folder in my (root) home
using a script
i tried the script
for i in m5
do
cd m5
cp e1* /home/pc/exam
cd ..
done
but get these... (3 Replies)
Hi..
I have 2 servers with linux suse10.
I made a mistake and on one of the servers changed with chmod the permission of root in directory /.
In the other servers the permissions are correct
Please i need a script, to change the permissions of one server 1, using the same permission of the... (11 Replies)
I have files existing with same names in the folders with date as display below
c:\2010-09-10 <==== folder
arr1.jpg
arr2.jpg
arr3.jpg
arr4.jpg
c:\2010-09-09 <==== folder
arr1.jpg
arr2.jpg
c:\2010-09-08 <==== folder
arr2.jpg
arr3.jpg
arr4.jpg
... (5 Replies)
Hi all
I have a bash script, that loops through a folders files and all subfolders for .shtml files.
It looks for a string and replaces it, creating a backup of the original file.
This all works great, but I'd like, when the backup is done, that the files are then also created in their... (4 Replies)
Hi,
I just started to learn shell progamming and just can't get my head around the following problem.
I need to do the following:
I have a folder which contains 100+ subfolders. Inside these subfolders there is one folder named 'Morph' and several jpg's.
I need to copy all the files into... (4 Replies)
Folks,
I am hopeful that you may be able to help me out with writing a script that can be run nightly (as cron?) to loop through all subfolders within the "/media" directory, delete all of the files in each of them, and then copy in all of the files from the "/home//sansa" directory to each of... (6 Replies)
So I have extremely limited experience with shell scripting and I was hoping someone could point out a few commands I need to use in order to pull this off with a shell script like BASH or whatnot (this is on OS X).
I need to search out for filenames with account numbers in the name itself... (3 Replies)
Hi,
So i know we use cp -r as a basic to copy folders/files.
I would like this BUT i would like to show the output of the files being copied.
With the amazing knowledge i have i have gone as far as this:
1) find source/* -exec cp -r {} target/ \;
2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
LEARN ABOUT DEBIAN
starpkg
starpkg(1) General Commands Manual starpkg(1)NAME
starpkg - convert a StarPlot data set to StarPlot file format
SYNOPSIS
starpkg [ --dataset ] data-set [ --dest destination ]
starpkg --recurse input-dir [ --dest destination ]
DESCRIPTION
On the StarPlot web site are available some packages of data that include both an original data file from NASA, and also a specification
file. These packages are referred to as "data sets", from which starconvert(1) can produce a data file in StarPlot format. For ease of
use, this should be done via the starpkg shell script.
USAGE
Assuming that data-set is a valid StarPlot data set (either in tar.gz format or a directory resulting from uncompressing the tar.gz file),
the `starpkg --dataset' command converts it to a StarPlot-formatted data file. Note that the `--dataset' flag is optional, and the name of
the input data set may be specified without it. In order to be a valid StarPlot data set, a directory or tar.gz file must contain at least
a valid specification file whose name ends with `.spec' and a flat text data file named `catalog.dat'.
If the `--dest' option is omitted, the default location of the output file is the first of the directories /usr/share/starplot, $PWD, $HOME
in which the user has write permissions. If `--dest' is omitted or destination is a directory, the name of the output file will by default
be ${specfilename%.spec}.stars. For instance, a data set containing gliese.3.spec will produce a file named gliese.3.stars.
The `starpkg --recurse' form of the command executes the above action for every StarPlot data set contained in input-dir, placing the
resulting StarPlot data files to the directory destination. (If the --dest option is omitted, the default destination directory is chosen
as above.) This form of the starpkg command is most useful when a new version of StarPlot has been installed and you wish to regenerate
all StarPlot data files from data sets using the new starconvert program.
OPTIONS --dataset, -s
Specify a directory or tar.gz file to use as a StarPlot data set.
--dest, -d
Specify the file or directory in which to output StarPlot-format data files.
--quiet, -q
Print only fatal errors to the terminal.
--recurse, -r
Specify a directory in which to search for StarPlot data sets.
--starconvert-option option
Pass option through to starconvert. If you wish to pass more than one option (or an option that takes a following argument), you
should give this flag multiple times, once for each starconvert option or argument.
--verbose, -v
Print all starconvert output to the terminal.
SEE ALSO starplot(1), starconvert(1)AUTHOR
Copyright (C) 2000-2002 under the GNU GPL by Kevin B. McCarty <starplot@starplot.org>. The StarPlot web page is at www.starplot.org.
Nov 2002 starpkg(1)