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! (4 Replies)
I have tried
sed '/6/a text_to_inserted' file > newfile
but this inserts test_to_insert at random places in file and i want it in specific location, which is line 6.
can anyone help.... (6 Replies)
hi,
I need to create a bash shell script which picks up data from a text file and in the output file puts it into an html made table. I have to use sed and awk utilties to do this
the input text file will contain data in the format:
job name para1 para2 para3 para4 para4
1 ... (1 Reply)
Hi Guys,
Can someone please help me on adding/inserting a variable to an sql scipt? Basically I want to generate data on monthly (i.e. July 01, 2011 to July 31, 2011) basis. As shown below..
set head off;
set linesize 300;
set pagesize 200;
spool /opt/oracle/temp/output.txt
select... (1 Reply)
Hi All,
I am very new to UNIX and I have tried this for a longtime now and unable to crack it....
There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day.....
eg:
String is "work started"
The log entry is as below:
... (1 Reply)
Hi I need a bash script that can search through a text file and when it finds 'FSS1206' I need to put a Letter F 100 spaces after the second instance of FSS1206
The format is the same throughout the file I need to repeat this on every time it finds the second 'FSS1206' in the file
I have... (0 Replies)
Hi not sure if this is possible but I need some help with a bash script, I have a text file and on the first line that starts with 7150230 I need it to put a 1 at position 79 and a 2 at position 88, this is where it gets complicated, on the next line it finds that starts with 7150230 I then need it... (8 Replies)
HI All,
I have a script in bash that i want that script will perform action
When the size of a particular folder exceeds the 80%.
Here is an example of script that result is exactly 80% :
#!/bin/bash
CHECK=$(df -h /var/log/syslog | grep '80%' | xargs echo | cut -d' ' -f5)
if ];... (1 Reply)
Hi
The file contains 12 months of date and less than 12 months of data I want to display if date filed less than 12 months of data I want to insert a value amount 1 to amount4 0 and dates as well.
12345|Date|cntry|amount1|amount2|amount3|amoun4... (2 Replies)
hi all
i have a problem in the bash shell. i'd like insert in a variable a file for example :
i have a file datafine.log in this file there is :
17/JUN/2019
i want to insert the value of datafine.log in a variable.
Regards
Frncesco
edit by bakunin: please use CODE-tags for your data... (2 Replies)
Discussion started by: Francesco_IT
2 Replies
LEARN ABOUT DEBIAN
cvs-autoreleasedeb
CVS-AUTORELEASEDEB(1) User Contributed Perl Documentation CVS-AUTORELEASEDEB(1)NAME
cvs-autoreleasedeb - Automatic Release of debian packages from CVS
DESCRIPTION
This script generates and uploads the debian package for cvs modules managed by cvs-buildpackage.
cvs-autoreleasedeb will maintain a state file of all the packages you want to be automatically published, and every time you commit the
debian/changelog file of your package, changing the debian version to a greater value, it will be published.
All the parameters to the script are configured in the conffile. There is no command-line switch. See cvs-autoreleasedeb.conf(5) for more
information.
USING
There are two ways of using this script:
1) Run as user cvs-autoreleasedeb in cron. This is very useful for software houses that want to have the "nightily build" version of the
software published automatically. In this case, the config file will be "/etc/cvs-autoreleasedeb.conf" and it will use
/var/lib/cvs-autoreleasedeb/ as scratch dir.
NOTE: edit /etc/default/cvs-autoreleasedeb to control this behavior
NOTE 2: all output will be thrown in /var/log/cvs-autoreleasedeb/run.log
2) Run as yourself, it will automatizate the work you will have if you have your packages in CVS. In this case, the config file will be
$HOME/.cvs-autoreleasedeb/conf and the scratch dir will be $HOME/.cvs-autoreleasedeb. cvs-autoreleasedeb will not create defaults, you
must have the configuration file created before running cvs-autoreleasedeb. See cvs-autoreleasedeb.conf(5).
TODO
- Use a snapshot of the time of the commit in
the changelog to checkout the source
- Localize the messages.
- Work with other than all lowercase in conffile.
- Use a better format for conffile.
_EXIT CODES
_exit codes:
0 = Clean _exit
1 = Config file not found
2 = No packages in config file
3 = Couldn't open the state file
4 = Couldn't open the state file for writing
5 = Couldn't determine architecture
SEE ALSO cvs-buildpackage(1), cvs(1), cvs-autoreleasedeb.conf(5), 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(1)