Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Cut the final line of each sorted value

$
0
0
Hi
I have file like the below mentioned example. Need some kind of unix script to achive the output.
Input:
Code:

PA|23|2013-01-23|252
PA|23|2013-01-23|264
PA|25|2013-01-22|200
PA|23|2013-01-27|156
PA|23|2013-01-27|002
PA|23|2013-01-27|014

Output:
Code:

PA|23|2013-01-23|264
PA|25|2013-01-22|200
PA|23|2013-01-27|156
PA|23|2013-01-27|014


Viewing all articles
Browse latest Browse all 16232

Trending Articles