hi,
I hope that someone could answer my question :D
I experience a problem with sed. If i run this sed in 'interactive' command line with this command line :
sed -i -e '/%B5content%5D/d' file.tx Note that I use special char in the deleted part I search for. if I run the same in a script, the command does not delete any correspondant existing string.
do you know why ?
Thanks,
On Fri, Aug 22, 2008 at 10:22:33AM +0200, Guillaume wrote:
hi,
I hope that someone could answer my question :D
I experience a problem with sed. If i run this sed in 'interactive' command line with this command line :
sed -i -e '/%B5content%5D/d' file.tx Note that I use special char in the deleted part I search for. if I run the same in a script, the command does not delete any correspondant existing string.
do you know why ?
Thanks,
-- Guillaume
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Dear Guillaume,
can you post the script or attach it? maybe you have to double escape special characters?
regards, patrick
Guillaume wrote:
hi,
I hope that someone could answer my question :D
I experience a problem with sed. If i run this sed in 'interactive' command line with this command line :
sed -i -e '/%B5content%5D/d' file.tx Note that I use special char in the deleted part I search for. if I run the same in a script, the command does not delete any correspondant existing string.
do you know why ?
Thanks,
When you run it in a script is it as the same user with the same shell? Is the script picking up your environment?
Kevin
When you run it in a script is it as the same user with the same shell?
yes, same user and same shell (/bin/bash) I forgot to mention the #!/bin/bash in the header.
Is the script picking up your environment?
Yes, I tought, i did not explicit any new environement var.