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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -