Sponsored Content
Top Forums Shell Programming and Scripting script grabbing cvs file ..... Post 302145861 by llsmr777 on Thursday 15th of November 2007 02:16:21 PM
Old 11-15-2007
$? is the return code of the previous program. - you mean the cd part of the script? Please bear wtih me when I say I'm new to script I mean really new.

We use korn at work so I just want to try to keep it the same.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed grabbing the last line of a file

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

Grabbing a value from an output file

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

grabbing filename from text file....should be easy!

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

Kornshell grabbing value from file

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

Inquiry on Grabbing info from file.

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

Grabbing the newest file, cleaner method?

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

Grabbing a chunk of text from a file

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

Grabbing data between 2 points in text file

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

Grabbing value from file and run command in ``

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

BASH SCRIPT - Insert date into cells in cvs file

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
CVS-AUTORELEASEDEB.CONF(5)				User Contributed Perl Documentation				CVS-AUTORELEASEDEB.CONF(5)

NAME
cvs-autoreleasedeb.conf - Configuration for cvs-autoreleasedeb SYNOPSIS
/etc/cvs-autoreleasedeb.conf $HOME/.cvs-autoreleasedeb/conf DESCRIPTION
The cvs-autoreleasedeb configuration file is writed in XML, because XML is easy to work with multiple-level data, but it's already in the TODO list to use a better format. As a good XML file, this config file has the following header. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE cvs-autoreleasedeb [ <!ELEMENT sources (server)+> <!ELEMENT server (package)+> <!ATTLIST server name CDATA #REQUIRED options CDATA #REQUIRED> <!ELEMENT package (option)+> <!ATTLIST package name CDATA #REQUIRED cvsroot CDATA #REQUIRED prefix CDATA #REQUIRED tag CDATA #REQUIRED> <!ELEMENT option EMPTY> <!ATTLIST option name CDATA #REQUIRED value CDATA #REQUIRED> ]> Which, in fact, tells the structure of the XML file. But in the case you don't know XML, this header tells that, in the sources, you have servers, which have packages, which have options. A server has the "name" and the "option" properies, a package has "name", "cvsroot", "prefix" and "tag" properties and an option has "name" and "value" property. Before explaining how the options affects the script, you must know that in the current version, all the tags and properties MUST be lower- case (it's already on the TODO list). CONFIGURATION SECTIONS
server This is the master section, tells what server to dupload. Actually, the "name" property of the server is used as the "--to" parameter to dupload. Packages are declared inside servers. Also, the "options" property tells aditional parameters to cvs-buildpackage for every pack- age in this server. package The package itself, the "name" property is used as the module name for cvs checkout. The "cvsroot" property is passed to cvs as the CVSROOT and the "prefix" is placed before the module name, used if your package is inside some other directory than the cvs root. Optionally, you can inform a tag to checkout the sources from. option Specify an option to a package. The following options are accepted and increment the following text to the cvs-buildpackage command: binary-source = 1: "-b" EXAMPLE
In the case you still didn't understand the config file, follows an example: <server name="intern"> <package name="cvs-autoreleasedeb" cvsroot=":pserver:ruoso@ozonio:/var/cvs" prefix=""> </package> <package name="someotherpackage" cvsroot=":pserver:ruoso@ozonio:/var/cvs" prefix=""> <option name="binary-source" value="1"/> </package> </server> SEE ALSO
cvs-buildpackage(1), cvs(1), cvs-autoreleasedeb(1), dupload(1) AUTHOR
This manual page was written by Daniel Ruoso <daniel@ruoso.com>, for the Debian GNU/Linux system. perl v5.8.7 2006-08-04 CVS-AUTORELEASEDEB.CONF(5)
All times are GMT -4. The time now is 12:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy