Sorry to be a pain twice a day
I read a file line by line (lines are
...
add_item_tabulky("Prasátko-Šťastný nový rok","prasatko_stastny_novy_rok.jpg","","","");
add_item_tabulky("Svatá rodina","rodina.jpg","","","");
add_item_tabulky("Sněhulák před domem","snehulak2.jpg","","","");
...
and when I want to replace a part of the line it isnt working!
->
Code:
while read line
do
line=$line|sed "s/\");//"
echo $line
done << file.php
I would expect the result to be :
add_item_tabulky("Sněhulák před domem","snehulak2.jpg","","","
(missing the "): in the end... but it doesnt happen.. Why is that?
the line doesnt get changed... I am guessing it has something to do with double quotes cause when I do
Code:
echo "\"\");"|sed "s/\");//"
the result is (as I expect)--> "
I tried doing echo $line|sed "s/\");//" but it dies with command not found (the quotes arent escaped and echo cant handle it)
thanks for help