05-01-2006
copy script
I am trying to figure out how to copy a file that changes daily to a new directory with a different name each day. Example : webfile created today copy webfile to /hold/webfile.1
tommorrow copy webfile /hold/webfile.2
Is there a way to do this? I can't seem to figure this out.
This needs to be done on a daily basis.. every day.
Thanks
Scbrown2
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I got this script:
print -n "Enter file name: "
read name
....
.....
.....
etc
but at the prmpt, when I press enter (without typin a word), comes up with sum error message, is there away of getting it not to print that message?? (8 Replies)
Discussion started by: Makaveli.2003
8 Replies
2. Shell Programming and Scripting
Hi Frineds,
Through my DTS process I am generating one file at one directory like,
/sqlsrvr_demo/dts/put/transaction_fact.csv
now I want to copy this files(only when the files size is greater than 0 kb) to some other directory like
/sqlsrvr_demo/dts/get/transaction_fact.csv
Can... (2 Replies)
Discussion started by: sunnysunny
2 Replies
3. Shell Programming and Scripting
Hi Gang, I am an old unix user and just recently returned in the flavor of a Mac. I have tons of pictures in the .orf format and would like to write a script to:
Search the Hard drives for that file type
Then, depending on date, copy it to a specific folder
If there is an exact... (2 Replies)
Discussion started by: jlfx
2 Replies
4. Shell Programming and Scripting
Hi All,
My first post on the Forums! I've just whipped up a quick script to slightly automate a log file retrieval process for work and to be completely honest my BASH scirpting knownledge is extremely limited as is my understanding of a lot of linux commands.
Basically the scripts purpose... (3 Replies)
Discussion started by: effektd
3 Replies
5. Shell Programming and Scripting
I have a little copy script,
#! /usr/bin/bash
FILE_COPY_LIST=$1
SOURCE_DIRECTORY=$2
DESTINATION_DIRECTORY=$3
while read file
do
if ; then
echo $file " cannot be found"
fi
cp -f $SOURCE_DIRECTORY'/'$file $DESTINATION_DIRECTORY
done < $FILE_COPY_LIST
This just... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I am currently learning UNIX scripting and have written a simple copy program.
However, upon execution, it returns an error despite debugging correctly.
Can anyone assist in explaining this?
Attached screenshots illustrating a test execution.
Many thanks. (13 Replies)
Discussion started by: dixer
13 Replies
7. UNIX for Dummies Questions & Answers
Hi Experts
Hi I'm trying run the below code, unfortunately it throwing error.
Error Message: tail:cannot open ‘ H:\Test_Folder\' No such file or directory
tail: invalid option -3
cp ` ls -tr *REPORT*.txt |tail -3` H:\Test_Folder\
to give you more insight of my requirement:
I am trying... (3 Replies)
Discussion started by: parpaa
3 Replies
8. Shell Programming and Scripting
Hello, I am still pretty new at writing shell scripts and may have bitten off more than I can chew. I am trying to write a script that figures out if a file exists (a known name) in directory a, then copy it to my selected destination, otherwise, look in directory b and check there. If it is in... (14 Replies)
Discussion started by: r34lj4k3
14 Replies
9. Shell Programming and Scripting
Hello All,
This is my first post to unix.com.
I have requirement to copy multiple *.dmp files from one server to other server.
I have that other server NFS filesystem mapped to source server.
Dump files are so huge almost 20TB. There are around 15-20 files each of 1.1TB.
I want to copy these... (6 Replies)
Discussion started by: Amit Bansode
6 Replies
10. Shell Programming and Scripting
I'm trying to copy script output and use it in this same script as a variable, and call the variable when script is compiled.
The script is below.
#!/bin/bash
output=$(script)
while read line; do
if ];
then
grep "$line" logfile.txt
# Create text file
echo "From: IT ... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies
WEAVE(1) General Commands Manual WEAVE(1)
NAME
weave - translate WEB to TeX
SYNOPSIS
weave [-x] webfile[.web] [changefile[.ch]]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The weave program is used to create a TeX file for viewing a Web program. It takes appropriate care of typographic details like page lay-
out and the use of indentation, italics, boldface, etc., and it supplies extensive cross-index information that it gathers automatically.
The command line arguments are the same as for tangle except for the option: -x says to omit the index, module name list, and table of con-
tents pages. (A CONTENTS.tex file will still be written when the TeX file is processed, however, unless some macros in webmac.tex are
redefined.)
The output TeX file name is formed by adding .tex to the root of the Web file name.
There are several macros that probably should be redefined by the programmer at the beginning of the Web file. It is a good idea to set
itle to the name of the program. And, to cause output of only changed modules, one can say letmaybe=iffalse (usually as the first
change in the change file).
ENVIRONMENT
The environment variable WEBINPUTS is used to search for the input files, or the system default if WEBINPUTS is not set. See tex(1) for
the details of the searching.
FILES
$TEXMFMAIN/tex/plain/base/webmac.tex
TeX macros used by weave output.
SEE ALSO
tangle(1) for references, authors, and other information.
Web2C 2012 7 April 2010 WEAVE(1)