I am planning to do something like this on a daily basis, so i want to ask that, if the comparison on the files encounter error,
is it wise for me to rerun the cp statement? Or i should approach it another way?
Last edited by pludi; 12-02-2009 at 06:54 AM..
Reason: code tags, please...
Hi,
I am using diff filename1 filename2,
as these files are of huge size,I want to know the count(n) no. of different records to be displayed on the terminal.
I do not want the contents of file i mean different lines to be displayed.
Cheers
Kunal. (0 Replies)
Hi I have two variables contining a set of near identical lines, i'd like to list the lines that differ? Prefereably i'd like not to save the variables into a file first.
i.e
var1
tag:val1
tag:val2
tag:val3
var2
tag:val1
tag:val4
tag:val3
i'd like the result to print out... (2 Replies)
I am comparing two files which are identical except for the timestamp which is incorporated within the otherwise same 372 bytes. I am using the command:
cmp -s $Todays_file $Yesterdays_file -i 372
When I run the command without the -i 372 it shows the difference i.e. the timestamp.... (5 Replies)
Please don't count this as a similar post.....I got the ftp part working....I am stuck how to find the files between two dates.
I have 5 files
filename.20090505.txt
filename.20090504.txt
filename.20090503.txt
filename.20090502.txt
filename.20090501.txt
My load date is 20090501 and run date... (5 Replies)
Hi All,
I have to compare set of files so I created a case statement with the option to give more than one file to compare. The Problem now i am facing is, if I compare the files directly, from prompt or just using the script only for a particular file then It's saying No difference, but If I... (4 Replies)
i recently copied 400GB of data from a NTFS drive to a ext4 drive. I want to verify that the data is 100% identical to the original.
I wanted to use cmp but it only does two files. The directory that was copied contains many subdirectories and all sorts of files (not just text).
So I guess... (5 Replies)
Hi All,
I am getting a syntax error message while trying to compare 2 files using the compare function (LINUX)
command substitution: line 79: syntax error near unexpected token `('
command substitution: line 79: `cmp -s <(tr , \n < $COMMON_TMP/nt_per_gs.done | sort) <(tr , \n <... (5 Replies)
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Shell script logic
Hi
I have 2 input files like with file 1 content as (file1)
"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt
File 2 contents as fle(2)
"BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt
I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
LEARN ABOUT LINUX
sotruss
SOTRUSS(1) User Commands SOTRUSS(1)NAME
sotruss - trace shared library calls through PLT
SYNOPSIS
sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
DESCRIPTION
sotruss is a small wrapper around ld.so that runs the specified executable until it exits. It intercepts and produce a trace of the dynamic
library calls which are called by the executed process via the Procedure Linkage Table (PLT). It outputs the caller, the calle and the
parameters as each call is executed.
OPTIONS -F, --from FROMLIST
Trace calls from objects on FROMLIST.
-T, --to TOLIST
Trace calls to objects on TOLIST.
-e, --exit
Also show exits from the function calls.
-f, --follow
Trace child processes as they are created by currently traced processes as a result of the fork(2) system call.
-o, --output FILENAME
Write output to FILENAME (or FILENAME. in case -f is also used) instead of standard error.
-?, --help
Give this help list
--usage
Give a short usage message
--version
Print program version
AUTHOR
Written by Ulrich Drepper.
COPYRIGHT
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO ld.so(8).
sotruss May 2014 SOTRUSS(1)