I have
FILE 1 (This file has all master columns/headers)
A|B|C|D|E|F|G|H|STATUS
FILE 2
A|C|F|I|OFF_STATUS
3|4|5|4|Y
6|7|8|5|Y
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)
Dear All,
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.
file1
1,5
4,1
then I have file two which is basicall same numbers but with... (2 Replies)
Hi,
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 3
value 3
value 3
value 3
value 4
value 6
value 6
value 6
value 6... (3 Replies)
Hi,
Greetings.
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.
Regards,
Dikesh Shah. (2 Replies)
Hi,
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)
MINCDIFF(1) MINC User's Guide MINCDIFF(1)NAME
mincdiff - report differences between minc files
SYNOPSIS
mincdiff [-header|-body] [-l] [diff options] file1 file2
DESCRIPTION
The mincdiff shell script compares two minc files by running diff(1) on the headers of the two minc files, and cmp(1) on the image vari-
able. You can view only the header differences using -header or only the body (image variable) differences using -body. The option -l is
passed on to cmp of the image variable. Any unrecognized options (e.g. -u) are passed verbatim to the diff of the headers.
OPTIONS -header Compare only the headers of the two files.
-body Compare only the image data of the two files.
-l Print the byte offset in decimal and the byte value in octal
for each difference encountered in the image variable.
AUTHOR
Peter Neelin
COPYRIGHTS
Copyright (C) 1993 by Peter Neelin
SEE ALSO diff(1), cmp(1).
$Date: 2004-05-20 21:52:08 $ MINCDIFF(1)