Home » Infrastructure » Unix » output of uniq -c command as pipe delimited
output of uniq -c command as pipe delimited [message #98590] Fri, 21 January 2005 22:01 Go to next message
laxman
Messages: 14
Registered: October 2000
Junior Member
How can i get the output of uniq -c as pipe delimited?

Thanks
Re: output of uniq -c command as pipe delimited [message #98591 is a reply to message #98590] Sat, 22 January 2005 00:12 Go to previous message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Try uniq -c file | sed 's/ */|/g'

$ uniq -c file | sed 's/ */|/g'  
|1|1|  
|2|2|  
|1|


Best regards.

Frank
Previous Topic: Fork() function in 'C'
Next Topic: ORA-00904: invalid column name
Goto Forum:
  


Current Time: Fri Mar 29 05:18:03 CDT 2024