Search Results

Search: Posts Made By: manishma71
1,605
Posted By rajamadhavan
echo "a,0,0,0,b,0" | sed 's/0,/1,/g' if you...
echo "a,0,0,0,b,0" | sed 's/0,/1,/g'

if you really want to use only ',0,' format you need to do one more round of substitution

echo "a,0,0,0,b,0" | sed 's/,0,/,1,/g' | sed 's/,0,/,1,/g'
Showing results 1 to 1 of 1

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