| |
| |
| |
|
Comments:
<0> hi all <1> hi <2> I want to replace a @ with a \@ how can I do that. I am trying escapes but I am doing something wrong <2> I was doing sed s/\@/\\@/ test > test2 but that was not working <1> @ is not special
<1> sed 's/@/\\&/g' <2> I am replacing a string with a variable but the variable looks like this root\@localhost.com. So the sed command is sed s/youremail/$var/ file1 > file2 but when it gets into file2 is looks like roo@localhost.com/ I need the \ to be there though <2> the replace needs to be root\@localhost.com <2> nm got it <3> fyi <3> http://www.scschools.org/jobs/jobs.htm <4> Hi, is it possible to address lines _not_ matching a regex? <4> oh... I see it in the man page. <4> (just missed it) <5> hello <6> hi <5> how do I put a regular expresion indicating end of line <5> I mean: <7> $ is the eol in sed <5> echo "hello.sig@mail.com.sig" | sed 's/.sig//g' <5> I would like: hello.sig@mail.com <7> ok <8> \.sig$
<5> :-D <5> thanks <5> I put it at the beginning <5> thanks a lot <5> another question :-D <5> how could I execute more than one `command` <5> for example <5> echo `for n in `find /var/spool/dspam/data/ -type f -name "44b268d9237726491211187.sig"`; do basename `dirname $n`| sed 's/\.sig$//g'; done` <5> the are two `cmd` <5> one inside the other <7> echo "hello.sig@mail.com.sig" | sed 's/.sig$//' <5> yes I know <5> but the echo is not the command <7> echo "hello.sig@mail.com.sig" | sed 's/.sig$//;s/hello/HELLO/' <6> helllen, is you question more to do with the embedded command syntax than the sed syntax? <6> not that i know the answer either way. ;p <5> I solved it <5> /usr/bin/dspam --user $(for n in `find /var/spool/dspam/data/ -type f -name "44b27d8c278731622883445.sig"`; do basename `dirname $n`| sed 's/.sig$//g'; done) --source=error --cl***=spam --signature=44b27d8c278731622883445 <5> it was actually a bash command <5> bash problem
Return to
#sed or Go to some related
logs:
ipython textmate fail to initialize ASIC in the kernel #ldap #math open-iscsi how-to debian fstab #gimp dapper restarting esd existance of math
sudo unable to lookup ubuntu via gethostbyname glxinfo illegal instruction debian
|
|