Search Results

Search: Posts Made By: sohaibs
6,636
Posted By sohaibs
Brilliant, sed -e :a -e 's/,null,/, ,/;ta'...
Brilliant,

sed -e :a -e 's/,null,/, ,/;ta' result.txt

This worked. Thanks a lot.
6,636
Posted By sohaibs
2,520,DB_MSC_MIT,null,KBNY,BLAH,US,5876548,VBU3M.U...
2,520,DB_MSC_MIT,null,KBNY,BLAH,US,5876548,VBU3M.U,VZ0M.U,U,VZFSK,BK,0.772084,ER,10.0,1.0,A,P,1.0,0.0,2009-01-16T00:00:00 @Europe/London,0.0,35.0,To...
6,636
Posted By sohaibs
sed -e "s/,null,/, ,/g" result.txt > result.tmp ...
sed -e "s/,null,/, ,/g" result.txt > result.tmp
sed 's/,null,/, ,/g' result.txt > result.tmp

Both the above statements only replace the first occurance of ,null, to , , in each line.
Could this...
6,636
Posted By sohaibs
Sed text replacement issue.
Hi,
Im trying to find and replace text within a unix file using sed.
The command that i have been using is

sed '/,null,/ s//, ,/g' result.txt>result.tmp

for replacing ",null," with ", ,"....
Showing results 1 to 4 of 4

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