Search Results

Search: Posts Made By: zaxxon
11,042
Posted By zaxxon
Take either the shorter awk solution I added in...
Take either the shorter awk solution I added in my 1st answer or remove the comma at the end of the pattern:


sed 's/^[^=]*=\([^,]*\),[^=]*=\([^,]*\),.[^=]*=\([^,]*\),.*/\1,\2,\3/'
...
11,042
Posted By zaxxon
sed...
sed 's/^[^=]*=\([^,]*\),[^=]*=\([^,]*\),.[^=]*=\([^,]*\),.*/\1,\2,\3/' infile
ONRM_ROOT_MO,RNC2,3141_RBI_Mumong_Exchange


Ah awk...:

awk -F",|=" '{print $2,$4,$6}' OFS=, infile...
Showing results 1 to 2 of 2

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