11-15-2007
script grabbing cvs file .....
how do I write a script to checkout a file in cvs and cat the file into a file in my home directory
Commands are
cd /home/smr/sandbox
cvsroot
choose option 1
cvs co filename
cat filename > /home/smr/newfilename
Thank you!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I can grab the first line w/ sed how do you grab the last line of a file? (2 Replies)
Discussion started by: xgringo
2 Replies
2. UNIX for Dummies Questions & Answers
I am executing a stored proc and sending the results in a log file. I then want to grab one result from the output parameters (bolded below, 2) so that I can store it in a variable which will then be called in another script. There are more details that get printed in the beginning of the log file,... (3 Replies)
Discussion started by: hern14
3 Replies
3. Shell Programming and Scripting
Quick question...I'm trying to grab the .tif file name from this output from our fax server. What is the best way i can do this in a bash script? I have been looking at regular expressions with bash or using awk but having some trouble. thanks! The only output i want is... (5 Replies)
Discussion started by: kuliksco
5 Replies
4. Shell Programming and Scripting
I have a script right now that I run a command which outputs just one word to a file. Well I need to grab that value and use it in another line of code so...
touch oraclesid.txt
echo $ORACLE_SID > oraclesid.txt
#grab that value
sqlplus v500/v500@<value>
how do I grab that value from the... (6 Replies)
Discussion started by: Blogger11
6 Replies
5. Shell Programming and Scripting
Here is another script I am trying to customize currently,
this script is used to send me disk space information, but at the moment I have to enter all the servers in manually SERVER= "xxx bbb ccc" ect..
how can I script it so that the servers are called off a txt file versus me entering all... (1 Reply)
Discussion started by: NelsonC
1 Replies
6. Shell Programming and Scripting
Greetings,
I'm doing a process whereby I need to search for all filenames containing a given bit of text and grab the newest file from what may be 20 results. In a script I'm writing,
i've got a monster line to do the sort as follows:
find /opt/work/reports/input -name "*$searchtarget*" |... (4 Replies)
Discussion started by: Karunamon
4 Replies
7. Shell Programming and Scripting
Hi,
I have a Report.txt file. Say the contents of this file are :
1 2 3 4 5 7 df v g gf
e r dfkf lsdk dslsdklsdk
Report Start: xxxxxxdad
asdffsdfsdfsdfasfasdffasdf
sadfasdfsadffsfsdf Report End.
sdfasdfasdf
sdfasfdasdfasdfasdfasdf
sadfasdfsdf
I need to grab from Report Start... (3 Replies)
Discussion started by: mrskittles99
3 Replies
8. Shell Programming and Scripting
I have a text file that shows the output of my solar inverters. I want to separate this into sections. overview , device 1 , device 2 , device 3. Each device has different number of lines. but they all have unique starting points. Overview starts with 6 #'s, Devices have 4#'s and their data starts... (6 Replies)
Discussion started by: Mikey
6 Replies
9. Shell Programming and Scripting
Hi ALL,
How can I make a script take data from a file and execute the commands within `` in the file n put that that in a variable?
for i in `cat file`
do
file=`grep -i key file`
cp ${file} test
done
file
/tmp/`date +y`log
/tmp/unix`date +y`log (1 Reply)
Discussion started by: 3junior
1 Replies
10. UNIX for Beginners Questions & Answers
Hi, I'm looking to accomplish the following.
Insert current date into three places/cells within a cvs, every time the bash script is executed.
The cells are column A,B,C row 2. Row 1 is reserved for the headers.
The file name is always orders.csv. These three cells we always have an old... (1 Reply)
Discussion started by: Rookievmc
1 Replies
LEARN ABOUT NETBSD
cvs-debrelease
CVS-DEBC(1) General Commands Manual CVS-DEBC(1)
NAME
cvs-debrelease - upload a cvs-buildpackage/cvs-debuild generated package
SYNOPSIS
cvs-debrelease [cvs-debrelease options] [--dopts [dupload/dput options]]
DESCRIPTION
cvs-debrelease is run from the CVS working directory after cvs-buildpackage or cvs-debuild. It uses the cvs-buildpackage system to locate
the .changes file generated in that run. It then uploads the package using debrelease(1), which in turn calls either dupload or dput.
Note that the --dopts option must be specified to distinguish the cvs-debrelease options from the dupload or dput options. Also, the
devscripts configuration files will be read, as described in the debrelease(1) manpage.
Note that unlike cvs-buildpackage, the only way to specify the source package name is with the -P option; you cannot simply have it as the
last command-line parameter.
OPTIONS
All current cvs-buildpackage options are silently accepted; however, only the ones listed below have any effect. For more details on all
of them, see the cvs-buildpackage(1) manpage. All debrelease options (as listed below) are also accepted.
--dupload, --dput
This specifies which uploader program to use; the default is dupload.
-adebian-architecture, -tGNU-system-type
See dpkg-architecture(1) for a description of these options. They affect the search for the .changes file. They are provided to
mimic the behaviour of dpkg-buildpackage when determining the name of the .changes file.
-Mmodule
The name of the CVS module.
-Ppackage
The name of the package.
-Vversion
The version number of the package.
-Ttag The CVS tag to use for exporting sources.
-Rroot directory
Root of the original sources archive.
-Wwork directory
The full path name for the cvs-buildpackage working directory.
-xprefix
This option provides the CVS default module prefix.
--no-conf, --noconf
Do not read any configuration files. This can only be used as the first option given on the command-line.
--help, --version
Show help message and version information respectively.
SEE ALSO
cvs-buildpackage(1), debrelease(1) and cvs-debuild(1).
AUTHOR
cvs-buildpackage was written by Manoj Srivastava, and the current version of debrelease was written by Julian Gilbey <jdg@debian.org>.
They have been combined into this program by Julian Gilbey.
DEBIAN
Debian Utilities CVS-DEBC(1)