Results 1 to 2 of 2
Hi there,
bi=8&kw=finanzen&ci=hamburg&ciid=8816& amp;
I need to replace & with & .
sed -i s/"&"/"&"/ test2.txt
The above command does not.
cat test2.txt
bi=8&kw=finanzen&ci=hamburg&ciid=8816& amp
Anyone knows why ?...
- 01-26-2012 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 9
sed not working
Hi there,
bi=8&kw=finanzen&ci=hamburg&ciid=8816& amp;
I need to replace & with & .
sed -i s/"&"/"&"/ test2.txt
The above command does not.
cat test2.txt
bi=8&kw=finanzen&ci=hamburg&ciid=8816& amp
Anyone knows why ?
- 01-26-2012 #2
The & is a special character, so you need to use \& instead. For example:
sed 's/&/\&/g' test.txt


Reply With Quote