10-23-2009
wow thanks!
that's look like it would solve this case
i don't really understand everything in that script. i need to learn more.
You got some good documents with examples that i can improve my knowledge ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to egreg for a couple strings whcih are (0) and SYSTEM. The problem is the syntax for egreg is:
egreg "(string1|string2)"
With my basic knowledge of UNIX I don't know how to include '(0)' within "(string1|string2)" apart from trying to use single quotes which doesn't work,... (9 Replies)
Discussion started by: m223464
9 Replies
2. UNIX for Advanced & Expert Users
#include <stdio.h>
#include <math.h>
// this function calculates the volume of a Cylinder
int main(void)
{
int r; // radius
int h; // height
double M_PI; // pi
int pOne = pow (r, 2);
// get user input of radius and height
printf ("Enter your... (3 Replies)
Discussion started by: pwanda
3 Replies
3. Shell Programming and Scripting
Hi,
I am using bash. My question concerns cutting out segments of a string. Given the following filename:
S2002254132542.L1A_MLAC.x.hdf
I have been able to successfully separate the string at the periods (.):
$ L1A_FILE=S2002254132542.L1A_MLAC.x.hdf
$ BASE=$(echo $L1A_FILE | awk -F.... (5 Replies)
Discussion started by: msb65
5 Replies
4. Shell Programming and Scripting
Hi ,
I have a line by line output as follows,for example output of ls
sample1
sample2
sample
i need to check if this output contains the exact string sample.If i use grep , it will find out all strings that contain sample as a part of their word.I dont want to do a pattern matching... (11 Replies)
Discussion started by: padmisri
11 Replies
5. Shell Programming and Scripting
jnkjhjkhbjkhb (1 Reply)
Discussion started by: vinayrao
1 Replies
6. Shell Programming and Scripting
I have a file with the following content.
> cat /tmp/internetusage.txt
6709.296322 30000 2/7/2010 0.00I am using the following awk command to calculate a percentage from field 1 and 2 from the file.
awk '{ print $1/$2*100 }' /tmp/internetusage.txt
This outputs the value "22.3643" as a... (1 Reply)
Discussion started by: jelloir
1 Replies
7. Shell Programming and Scripting
#! /bin/csh
set tt=12345_UMR_BH452_3_2.txt
set rr=`echo $tt | cut -d_ -f1`
set rr1=welcome
set ff=$rr $rr1
echo $ff
why $ff returned only 12345 and not 12345welcome? thanks (2 Replies)
Discussion started by: jdsignature88
2 Replies
8. Programming
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
Discussion started by: royalibrahim
7 Replies
9. Shell Programming and Scripting
Req:
===========
1)I have one shell script a.sh
2)I opened Putty session , with user name = SIR100 , and i ran a.sh script in back ground and
it took 5 minutes to complete.Meanwhile,i ran same script second time i.e a.sh with same user it sholud not allow to run the script , but it's... (3 Replies)
Discussion started by: as234301
3 Replies
10. Shell Programming and Scripting
my echo $var1 gives below value
1.7_NEW=25,1.7_RETAINED=30,1.7_RETURNING=40
i want it in 3 different values....
i.e. as
echo $1.7_NEW=25
echo $1.7_RETAINED=30
echo $1.7_RETURNING=40
the o/p of $1.7_NEW should be 25..... (5 Replies)
Discussion started by: nikhil jain
5 Replies
LEARN ABOUT DEBIAN
svn-backup-dumps
svn-backup-dumps(1) General Commands Manual svn-backup-dumps(1)
NAME
svn-backup-dumps - Create dumpfiles to backup a subversion repository.
SYNOPSIS
svn-backup-dumps <repos> <dumpdir>
DESCRIPTION
svn-backup-dumps creates dumpfiles from a subversion repository. It is intended for use in cron jobs and post-commit hooks.
The basic modes of operation are:
o Create a full dump (revisions 0 to HEAD)
o Create incremental dump containing at most N revisions.
o Create incremental single-revision dumps (for use in post-commit).
Dumpfiles are named in the format basename.rev.svndmp or basename.rev.rev.svndmp, where basename is the repository directory name, and the
rev arguments are the first and last revision numbers represented in the dumpfile, zero-padded to 6 digits.
Optionally, svn-backup-dumps can compress dumpfiles with gzip or bzip2, and can transfer them to another host using FTP or SMB (using smb-
client).
OPTIONS
--version
Show program's version number and exit.
-h, --help
Show this help message and exit.
-b Compress the dump using bzip2.
--deltas
This is passed through to svnadmin dump.
-c count
Maximum number of revisions per dumpfile.
-o Overwrite files.
-O Overwrite all files.
-q Quiet.
-r rev Specify a single-revision dumpfile.
-t ftp:host:user:password:path
-t smb:share:user:password:path
Transfer dumps to another machine using the FTP or SMB protocols. path is where to store the dumpfiles on the remote server; any
occurrence of %r in the path is replaced by the repository name. Support for "smb:" requires the smbclient program.
-z Compress the dump using gzip.
EXAMPLES
To create a full dump of all revisions of a repository /srv/svn/foo in the directory /var/backup/svn:
svn-backup-dumps /srv/svn/foo /var/backup/svn
The dumpfile will be named src.000000-NNNNNN.svndmp.gz where NNNNNN is the head revision number.
To create incremental dumps containing at most 1000 revisions:
svn-backup-dumps --deltas -z -c 1000 /srv/svn/foo /var/backup/svn
If the youngest revision is 2923, it creates the following files:
foo.000000-000999.svndmp.gz
foo.001000-001999.svndmp.gz
foo.002000-002923.svndmp.gz
If run again, later, when the youngest revision is 3045, it creates these two files:
foo.002000-002999.svndmp.gz
foo.003000-003045.svndmp.gz
Note that it does not remove the redundant file foo.002000-002923.svndmp.gz.
To create incremental single-revision dumps from a post-commit hook:
svn-backup-dumps -r $rev $repos /var/backups/svn
where $rev and $repos are variables previously set in the post-commit script from its command line. The dumpfile name will be in the form
foo.000352.svndmp.
To send the dumpfiles to the SMB share \ERNESTBACKUPS in a directory svnfoo with user svnuser and password w0rth1ng:
svn-backup-dumps -t "smb://ERNEST/BACKUPS:svnuser:w0rth1ng:svn/%r /srv/svn/foo /tmp/tmpbackup
Note that the %r in the path is replaced by the repository name foo. Note also that a local backup directory is required, at present, even
when using the -t option.
AUTHOR
Voluntary contributions made by many individuals. Copyright (C) 2006 CollabNet.
2006-11-09 svn-backup-dumps(1)