06-12-2017
The output was changed.
Last edited by rdrtx1; 06-12-2017 at 08:21 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
. . . . . . (3 Replies)
Discussion started by: some124one
3 Replies
2. Shell Programming and Scripting
I've this file and need to sort the data in each group
File would look like this ...
cat file1.txt
Reason : ABC
12345-0023
32123-5400
32442-5333
Reason : DEF
42523-3453
23345-3311
Reason : HIJ
454553-0001
I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Discussion started by: prash184u
11 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone,
This is my first post, but I have already received a lot of help from the forums in the past. Thanks!
I've searched the forums and my question is very similar to an earlier post entitled "Printing highest value from one column", which I am apparently not yet allowed to post a... (1 Reply)
Discussion started by: dliving3
1 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone,
This is my first post, but I have already received a lot of help from the forums in the past. Thanks!
I've searched the forums and my question is very similar to an earlier post entitled "Printing highest value from one column", which I am apparently not yet allowed to post a... (3 Replies)
Discussion started by: dliving3
3 Replies
5. Shell Programming and Scripting
Just want to say this is great resources for all thing Unix!!
cat tmp.txt
A 3
C 19
A 2
B 5
A 1
A 0
C 13
B 9
C 1
Desired output:
A 3
B 9
C 19
The following work but I am wondering if there is a better way to do it: (4 Replies)
Discussion started by: chirish
4 Replies
6. Shell Programming and Scripting
print the key with highest value
input
a 10
a 20
a 30
b 2
b 3
b 1
output
a 30
b 3 (9 Replies)
Discussion started by: quincyjones
9 Replies
7. Shell Programming and Scripting
There are some duplicate field on description column .I want to print duplicate row along with highest version of number and corresponding description column.
file1.txt
number Description
=== ============
34567 nl21a00is-centerdb001:ncdbareq:Error in loading init
34577 ... (7 Replies)
Discussion started by: vijay_rajni
7 Replies
8. AIX
Hi, I have a little issue right now.
I have a file with 4 columns
test0000002,10030010330,c_,218
test0000002,10030010330,d_,202
test0000002,10030010330,b_,193
test0000002,10030010020,c_,178
test0000002,10030010020,b_,170
test0000002,10030010330,a_,166
test0000002,10030010020,a_,151... (2 Replies)
Discussion started by: Ebk
2 Replies
9. Shell Programming and Scripting
Hi, I have a little issue right now.
I have a file with 4 columns
test0000002,10030010330,c_,218
test0000002,10030010330,d_,202
test0000002,10030010330,b_,193
test0000002,10030010020,c_,178
test0000002,10030010020,b_,170
test0000002,10030010330,a_,166
test0000002,10030010020,a_,151... (3 Replies)
Discussion started by: Ebk
3 Replies
10. UNIX for Beginners Questions & Answers
grepping on a value but then want to print only those lines that have the highest value in the 4th column
log text text R59FJ
log text text R63FT
log text text R60JX
log1 text text R63EA
log1 text text R60JX desired output
log text text R63FT
log1 text text R63EAtried this but not getting... (2 Replies)
Discussion started by: jimmyf
2 Replies
diffmk(1) General Commands Manual diffmk(1)
NAME
diffmk - Marks differences between files
SYNOPSIS
diffmk [-b] [-ab'mark'] [-ae'mark'] [-cb'mark'] [-ce'mark'] [-db'mark'] [-de'mark'] file1 file2
The diffmk command compares two versions of a file and creates a new file that marks the differences.
OPTIONS
Uses mark to mark where added lines begin. Uses mark to mark where added lines end. Ignores differences that are only changes in tabs or
spaces on a line. Uses mark to mark where changed lines begin. Uses mark to mark where changed lines end. Uses mark to mark where
deleted lines begin. Uses mark to mark where deleted lines end.
DESCRIPTION
The file1 and file2 variables are the old and new versions of the file, respectively. The diffmk command compares them and writes a new
version to standard output, which can be redirected to a file. This output contains the lines of file2 marked with nroff change mark
requests (.mc), or with the marks you specify with the -ab, -ae, -cb, -ce, -db, and -de options.
When output containing requests is formatted with nroff, changed or inserted lines are marked by a | (vertical bar) at the right margin of
each line. An * (asterisk) indicates that a line was deleted.
If the DIFFMARK environment variable is defined, it names a command string that diffmk uses to compare the files. (Normally, diffmk uses
the diff command.) For example, you might set DIFFMARK to diff -h in order to better handle extremely large files.
EXAMPLES
To mark the differences between two versions of a text file, enter: diffmk -ab'>I:' -ae'<I' -cb'>C' -ce'<C' -db'>D' -de'<D'
chap1.old chap1 >chap1.diffs
This causes diffmk to create a copy of chap1 called chap1.diffs, showing differences between chap1.old and chap1. Additions of one
or more lines are marked with >I and <I, changed lines are marked with >C and <C, and deletions are marked with >D and <D. To mark
differences with nroff requests, enter: diffmk chap1.old chap1 > chap1.nroff
This produces a copy of chap1 called chap1.nroff containing nroff change mark requests to identify text that was added to, changed,
or deleted from chap1.old. To use different nroff marking requests and ignore changes in white space, enter: diffmk -b -cb'.mc
%' chap1.old chap1 > chap1.nroff
This imbeds commands that mark changes with % (percent sign), additions with | (the default, because no -a option is specified), and
deletions with * (the default). It does not mark changes that only involve a different number of spaces or tabs between words (-b).
SEE ALSO
Commands: diff(1), nroff(1)
diffmk(1)