Extract only values betwen strings/ braces in bash -


original text :

2013-08-29 08:51:24 777 ipms 0123456 [prce=101.078804, size=1540000, even=15476.6] 

hi, can somone me in extracing below original text

2013-08-29 "08:51:24,777" ipms 0123456 101.078804 1540000 15476.6 

you can try one:

cat file.txt | tr '\[prce=siz,vn]' \ '            ' | awk -f" " '{$4="ipms"; print}' 

copy , give try.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -