03-12-2012
no.
I am getting all new lines printed off as 1, some these could be more then 1 for example 2+ and still be new, plus in code we are not comparing against all records for new lines to be printed off just against 50 (I know this is variable but could we not incorporate this check)
The first script has it to a tea i.e compares current file against everything then prints off new lines ok, just problem is I need it to also check current file against 3 months worth of files then print off >20
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
So i have this file called /apps/turnout which looks like that of the contents of the /etc/shadow (but not exactly)
the file has a long list in it. basically, the contents of this file looks something similar to the following:
jajajajalala:D#$#AFVAdfda
lalabavisof:#%R@fafla#$... (3 Replies)
Discussion started by: SkySmart
3 Replies
2. Shell Programming and Scripting
Hi ,
I have file named docs.txt
The content of the file look like this:
DOC disk location Size
======= ===== ============= =========
TXT A /dev/dm-1 10
TXT B /dev/dm-2 10
BIN C ... (3 Replies)
Discussion started by: yoavbe
3 Replies
3. Shell Programming and Scripting
i have a file ddd.txt
its delimiter is : but has , and "" within each column as below and also each line ends with ;
I_EP,"29":I_US,"120":I_P_ID,"2020":I_NEW,"600":I_OLD,"400":I_POW,"4.5":I_NAME,"TOM";... (9 Replies)
Discussion started by: blackzinga80
9 Replies
4. Shell Programming and Scripting
Hi,
I have a file look likes this :
--->start hir
Trace file: pudwh_ora_9998.trc
Sort options: fchela exeela
***************************************************************count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed... (3 Replies)
Discussion started by: yoavbe
3 Replies
5. Shell Programming and Scripting
Hello to all,
I hope some awk guru could help me.
I have 2 input files:
File1: Is the complete database
File2: Contains some numbers which I want to compare
File1:
"NUMBERKEY","SERVICENAME","PARAMETERNAME","PARAMETERVALUE","ALTERNATENUMBERKEY"... (9 Replies)
Discussion started by: Ophiuchus
9 Replies
6. Shell Programming and Scripting
Hi,
I have a file. In this file when ever the word "ABC" occurs at position from 25 and 34 I would like to replace
the value at postion 100 to 5 for the first 1000 rows only.
I have written the following Awk command.
nawk 'substr($0,25,9)=="ABC" {print $0}' filename
The above command... (4 Replies)
Discussion started by: pinnacle
4 Replies
7. Shell Programming and Scripting
Hello to all in forum,
Maybe an awk expert could help me with this complex task for me.
I have the input shown below and I would like to get the output as follow:
- I would like the output separated by commas.
- The header is fixed and will be the same always.
- For the lines containing... (22 Replies)
Discussion started by: Ophiuchus
22 Replies
8. Shell Programming and Scripting
hello,
i have a complex awk problem...
i have two tables, one with a value (0 to 1) and it's corresponding p-value, like this:
1. table:
______________________________
value p-value
... ...
0.254 0.003
0.245 0.005
0.233 0.006
... ...
______________________________
and a... (6 Replies)
Discussion started by: dietmar13
6 Replies
9. Shell Programming and Scripting
Hi I have a complex xml to be build using awk using a lookup file values. Below is the xml
<country name="xyz">
<state name="abc">
<city name="qwe" capital="yes"/>
<city name="asd" capital="no"/>
</state>
<state name="qrq">
<city name="rthy" capital="yes"/>
<state>
</country>
... (1 Reply)
Discussion started by: Nevergivup
1 Replies
10. Shell Programming and Scripting
Hi,
I'm trying to transform my data from the following format:
eps:, 0.248281687841641, -2.83539034165844e-7, 2.78042576353472+6.3505226053266e-6i
to this:
eps:, 0.248281687841641, -2.83539034165844e-7, 2.78042576353472, +6.3505226053266e-6
so I can plot it with GnuPlot.
how do I... (4 Replies)
Discussion started by: rogeriogouvea
4 Replies
LEARN ABOUT REDHAT
diffpp
DIFFPP(1) DIFFPP DIFFPP(1)
NAME
diffpp - pretty-print diff outputs with GNU enscript
SYNOPSIS
diffpp currentfile < diff-file
DESCRIPTION
Diffpp converts diff(1)-program's output files to a format suitable to be printed with GNU enscript(1). Program annotates the changes with
enscript's special escapes so enscript can highlight the modified portions of the file. All changed and added lines are printed with
gray-background, deleted lines are marked with minus (`-') characters; diffpp prints one minus character for each deleted line.
EXAMPLES
The easiest way to use diffpp is to use it as an input filter for enscript. If an input filter is specified for enscript it is used to
pre-process the incoming data-stream. Filtering does not alter any header strings or file-timestamps which might be printed on enscript
headers; only the incoming data is modified.
enscript -G2re --filter='rcsdiff %s | diffpp %s' *.c *.h
Print the changes between current source files and their latest RCS-versions.
enscript -G2re --filter='diff %s~ %s | diffpp %s' *.c *.h
Print changes between source files and the corresponding backup-files.
SEE ALSO
diff(1), enscript(1)
AUTHOR
Markku Rossi <mtr@iki.fi> <http://www.iki.fi/~mtr/>
DIFFPP
Jan 29, 1997 DIFFPP(1)