Hi
I am having a csv file like this
ahsh,90.82,add,32424,ahha
hhdh,98.89,hdhdh,92728,neha
hshs,you,97.7,hdhdhd,are,a
jsjsj,wonderful,9788,79.9,aheh
ahdh,95.5,girl, 2737,jolll
I need to add width="100" to the value which is greater than 90 like decimal points but less than 100
Output file
ahsh,width="100" 90.82,add,32424,ahha
hhdh,width="100" 98.89,hdhdh,92728,neha
hshs,you,width="100" 97.7,hdhdhd,are,a
jsjsj,wonderful,9788,79.9,aheh
ahdh,width="100" 95.5,girl, 2737,jolll
I tried to use this sed script
sed 's/[9][0-9]\.[0-9]*/width="100" [9][0-9]\.[0-9]*/g' file
But it is adding [9][0-9]\.[0-9]*
to the prior numbers
Prior numbers I need as it is as shown in output file
Please help me out how to tackle this ?
Thanks
Kshitij