is not working because i am using 8 sed commands in a line variable to clear a very complicated xml file with a lot of stuff to remove .
---------------------------------------
Interesting that if i use that code on a multiple commands line it not works
like : sed something <filename | sed otherstuff | sed morestuff | grep -v ^http://$ >newfilename
or even :
var1=$(sed something <filename | sed otherstuff | sed morestuff | grep -v ^http://$ )
echo $var1 > filename2
but if i use it alone it works .
Why is this happening ? Does anyone knows ?