I have a record like :
2011-05-29 17:51:34 => 'HS|CMGC|RN431|CI13950|CH7-4a37-afe2-acabfc9d262d|DA110529|TI175133|'
I want my final output to be something like:
2011-05-29 17:51:34 CI13950
I can get each part using cut like this:
$ cut -c 1-19
2011-05-29 17:51:34
$ cut -d '|' -f 4
CI13950
I am unable combine the two as:
$ cut -c 1-19 -d '|' -f 4
cut: only one type of list may be specified
Any suggestions?