9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a script issue I can't seem to work out.
In a directory I have several folders and I want to send just the sapdata1 to sapdata14 folders and their contents but not sapdataXX/.snapshot
the script is:
#!/bin/bash
# SETUP OPTIONS
export SRCDIR="/scratch/doug/test/sapdata*"... (5 Replies)
Discussion started by: DougyC
5 Replies
2. Shell Programming and Scripting
Example
I have following requirements where i need to search for particular string from the log files.Files will be archived with number attached end to it and creates a new log file.
First Day i will ran at 8:00 AM
Filename:a.log1
Wed Aug 24 04:46:34... (1 Reply)
Discussion started by: nareshnani211
1 Replies
3. Shell Programming and Scripting
Dear all,
I would like to split a file incrementally. My file looks like:
$path {
$name "path_sparc_ifu_dec_1" ;
$transition {
"dtu_inst_d" v ; // (in)
"U622/Y" ^ ; // (INVX16_LVT)
"U870/Y" ^ ; // (AND2X1_LVT)
"U873/Y" v ; // (INVX1_LVT)
"U872/Y" ^ ; // (NAND3X0_LVT)... (3 Replies)
Discussion started by: jypark22
3 Replies
4. Shell Programming and Scripting
Hi All,
I want to send multiple CSV file using below code. In Result folder, we have multiple CSV files. However, I want to catch only Summary CSV files.
I was trying using *, % with different combination. However, not able to do so.
From below code, I could send only one file... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies
5. Shell Programming and Scripting
Hi, I was wondering if someone could help with what is probably a fairly easy problem. I have two variables, i is between 1-5, j is between 11-15
I'd like to produce this:
1_11
2_12
3_13
4_14
5_15
Each number goes up incrementally with the other.
But my shoddy code is not... (5 Replies)
Discussion started by: hubleo
5 Replies
6. Shell Programming and Scripting
Hi
I am using rsync command to copy the likes like bwlow
rsync -vaR krish/harris/test data/charles
I am running this script in test1 folder but the krish/harssis /test is existed in test2 folder.
So when i run this command am getting the error like
rsync: link_stat... (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
7. UNIX for Dummies Questions & Answers
i need help with my script....
i am suppose to grab files within a certain date range
now i have done that already using the touch and find command (found them in other threads)
touch -d "$date_start" ./tmp1
touch -d "$date_end" ./tmp2
find "$data_location" -maxdepth 1 -newer ./tmp1 !... (6 Replies)
Discussion started by: deking
6 Replies
8. UNIX for Advanced & Expert Users
HI all,
When i run this command below i get this error:
(cat /root/body.txt ; uuencode -m Summaryfile.zip) | mailx -s "completed" sandeep@help.com
bash: uuencode: command not found
Does anyone know why this is happening?
Or is there any alternative to send mail with an... (2 Replies)
Discussion started by: bsandeep_80
2 Replies
9. Shell Programming and Scripting
I've refined the filesystem size using awk and directed to a file name.
eg, here's the content in a file called "numbers"
$cat numbers
345
543
23423456
44435
546
.
.
how do you write a script to all these numbers to get the total?
thanks a lot. (9 Replies)
Discussion started by: kiem
9 Replies
librsync(3) Library Functions Manual librsync(3)
NAME
librsync - library for delta compression of streams
SYNOPSYS
#include <stdio.h>
#include <stdlib.h>
#include <librsync.h>
cc ... -lrsync
DESCRIPTION
The librsync library implements network delta-compression of streams and files. The algorithm is similar to that used in the rsync(1) and
xdelta(2) programs, but specialized for transfer of arbitrary-length octet streams. Unlike most diff programs, librsync does not require
access to both of the files on the same machine, but rather only a short ``signature'' of the old file and the complete contents of the new
file.
The canonical use of librsync is in the rproxy(8) reference implementation of the rsync proposed extension to HTTP. It may be useful to
other programs which wish to do delta-compression in HTTP, or within their own protocol. There are HTTP-specific utility functions within
librsync, but they need not be used.
A number of tools such as rdiff(1) provide command-line and scriptable access to rsync functions.
SEE ALSO
rdiff(1)
rdiff and librsync Manual
http://rproxy.sourceforge.net/.
draft-pool-rsync
BUGS
The rsync protocol is still evolving. There may be bugs in the implementation. The interface may change in the future, but it is becoming
more stable.
Many routines will panic in case of error rather than returning an error code to the caller. Patches to fix this are welcome, but at the
current state of development aborting seems as useful as trusting to possibly-incomplete checking in the client.
AUTHOR
Martin Pool <mbp@samba.org>, with Andrew Tridgell <tridge@samba.org>.
rdiff development has been supported by Linuxcare, Inc and VA Linux Systems.
Martin Pool $Date: 2003/06/12 06:03:32 $ librsync(3)