FILE 1 (This file has all master columns/headers)
Below command give me all headers of FILE 2 into array2.txt file
paste <(head -1 FILE2.txt | tr '|' '\n')>array2.txt
So I would like to compare... (2 Replies)
I have two sets of files. File 1 can be any number between 1 and 20 followed by a frequency of that number in a give documents... the lines in the file will be dependent to the analysed document. e.g.
then I have file two which is basicall same numbers but with... (2 Replies)
Please help me on issue described below,
I have 4 machine setup, M1 -> M2 -> M3 | M4. And A laptop that can be reachable through both M3 and M4.
M2 has 2 NIC conected to M3 and M4. Now I want to divide the flow coming from M1 for laptop.
At M2, I have done following,... (1 Reply)
I'm pretty new to scripting and didn't see an example of this issue yet. I am trying to count and print the total number of times each value is found within a file. Here is a short example of my starting file.
value 6... (3 Replies)
We need to make a regexp based rule engine.
The rules would be applied to any file specified and the data not matching should be logged.
Would awk be the right scripting language.
Dikesh Shah. (2 Replies)
I need a shell script which can provide details from error logs like this
Aug 23 21:19:41 red mountd: authenticated mount request from bl0110.bang.m
pc.local:651 for /disk1/jobs (/disk1)
Aug 23 08:49:52 red dhcpd: DHCPDISCOVER from 00:25:90:2b:cd:7c via eth0: unknown client
Aug 24... (2 Replies)
Discussion started by: ratheeshp
LEARN ABOUT ULTRIX
diffmk(1) General Commands Manual diffmk(1)Name
diffmk - mark differences between files
diffmk name1 name2 name3
The command compares two versions of a file and creates a third file that includes ``change mark'' commands for or The name1 and name2 are
the old and new versions of the file. The command generates name3, which contains the lines of name2 plus inserted formatter ``change
mark'' (.mc) requests. When name3 is formatted, changed or inserted text is shown by | at the right margin of each line. The position of
deleted text is shown by a single *.
The command can be used to produce listings of C (or other) programs with changes marked. A typical command line for such use is the fol-
diffmk old.c new.c tmp; nroff macs tmp | pr
In this example the file macs contains:
The .ll request might specify a different line length, depending on the nature of the program being printed. The .eo and .nc requests are
probably needed only for C programs.
If the characters | and * are inappropriate, a copy of can be edited to change them. The command is a shell procedure.
Aesthetic considerations may dictate manual adjustment of some output. File differences involving only formatting requests may produce
undesirable output, that is, replacing .sp by .sp 2 will produce a ``change mark'' on the preceding or following line of output.
See Alsocmp(1), comm(1), diff(1), nroff(1), join(1), sccsdiff(1), troff(1), uniq(1)diffmk(1)