06-10-2015
Ahh, that's a multi-line string, isn't it.
In what way does it not work? Does it find no changes, or always find changes?
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies
2. Shell Programming and Scripting
Hi,
svn diff does not work very well with 2 local folders, so I am trying to do this diff using diff locally.
since there's a bunch of meta files in an svn directory, I want to do a diff that excludes everything EXCEPT *.java files. there seems to be only an --exclude option, so I'm not sure... (3 Replies)
Discussion started by: ackbarr
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am stuck up in middle of a process.
I have 2 files A and B.
Some lines in A are commented with either // or /* */
But basically content (uncommented portion) of both the files are same.
Now I want to prove that both the files are same using some script.
I can't do a diff as... (1 Reply)
Discussion started by: bishnu.bhatta
1 Replies
4. Shell Programming and Scripting
Hello - I have a small diff script that checks 2 directories. It reports the difference in count such as wc -l, and also names the different files.
How should I get "ERROR: diff found . (host)" - when it actually finds a diff?
This is how I have written:
#!/bin/bash
... (10 Replies)
Discussion started by: DallasT
10 Replies
5. Shell Programming and Scripting
Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell scripting.
please help me to find out the solution.
I need a script where we need to read the text file(consists of all file names) and get the file names one by one
and append the date suffix for each file name as 'yyyymmdd' .
Then search each file if exists... (1 Reply)
Discussion started by: Lucky123
1 Replies
7. Shell Programming and Scripting
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
8. Shell Programming and Scripting
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies
9. Shell Programming and Scripting
I am trying to use the diff command on multiple files. I have a script like this:
diff -u <(head -n99999999 /tmp/*txt ) <(head -n99999999 *txt.z) |sed -e '/\-\//s/\-/deleting /g' -e '/\+\//s/\+/rearranging /g' -e '/=\//s/\.*//g' -e '/txt.z/d' -e '/@/d' |gawk '$1 ~ /^deleting$/ || $1 ~... (4 Replies)
Discussion started by: newbie2010
4 Replies
10. Shell Programming and Scripting
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
LEARN ABOUT CENTOS
error::dwarf
ERROR::DWARF(7stap) ERROR::DWARF(7stap)
NAME
error::dwarf - dwarf debuginfo quality problems
DESCRIPTION
Systemtap sometimes relies on ELF/DWARF debuginfo for programs being instrumented to locate places to probe, or context variables to
read/write, just like a symbolic debugger does. Even though examination of the program's source code may show variables or lines where
probes may be desired, the compiler must preserve information about them for systemtap (or a debugger such as gdb) to get pinpoint access
to the desired information. If a script requires such data, but the compiler did not preserve enough of it, pass-2 errors may result.
Common conditions that trigger these problems include;
compiler version
Prior to GCC version 4.5, debuginfo quality was fairly limited. Often developers were advised to build their programs with -O0 -g
flags to disable optimization. GCC version 4.5 introduced a facility called "variable-tracking assignments" that allows it to gen-
erate high-quality debuginfo under full -O2 -g optimization. It is not perfect, but much better than before. Note that, due to
another gcc bug (PR51358) -O0 -g can actually sometimes make debuginfo quality worse than for -O2 -g.
function inlining
Even modern gcc sometimes has problems with parameters for inlined functions. It may be necessary to change the script to probe at
a slightly different place (try a .statement() probe, instead of a .function() probe, somewhere a few source lines into the body of
the inlined function. Or try putting a probe at the call site of the inlined function. Or use the if @defined($var) { ... } script
language construct to test for the resolvability of the context variable before using it.
instruction reordering
Heavily optimized code often smears the instructions from multiple source statements together. This can leave systemtap with no
place to choose to place a probe, especially a statement probe specified by line number. Systemtap may advise to try a nearby line
number, but these may not work well either. Consider placing a probe by a statement wildcard or line number range.
ALTERNATIVES
In order to reduce reliance on ELF/DWARF debuginfo, consider the use of statically compiled-in instrumentation, such as kernel tracepoints,
or <sys/sdt.h> userspace markers. Such instrumentation hook sites are relatively low cost (just one NOP instruction for sdt.h), and nearly
guarantee the availability of parameter data and a reliable probe site, all without reliance on debuginfo.
SEE ALSO
stap(1),
http://dwarfstd.org/,
http://sourceware.org/systemtap/wiki/TipContextVariables,
http://gcc.gnu.org/wiki/Var_Tracking_Assignments,
warning::debuginfo(7stap),
error::reporting(7stap)
ERROR::DWARF(7stap)