Search Results

Search: Posts Made By: bribri87
2,037
Posted By anurag.singh
sed 's/\(.*\)\(.*\)|\(\2|.*\)/\1|\3/' inputFile ...
sed 's/\(.*\)\(.*\)|\(\2|.*\)/\1|\3/' inputFile

Above awk looks simpler though.
2,037
Posted By michaelrozar17
you could simply go for a awk solution..Guess...
you could simply go for a awk solution..Guess it's quite complex with sed to this kind of texts(anyway let's try :cool:)
awk -F"|" '{sub($4,"",$3); OFS=FS}1' inputfile > outfile
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy