I am a bit new to Linux so am still learning. I am a bit confused. I have some pretty good and new Linux books but cannot find an answer (google gave nothing because it trims out all the special characters from my request):
So I am looking at this command:
Code:
sed -i 's@Sending processes@& started by@g' rc/init.c
and cannot understand why they are using @ sign if every tutorial about sed tells to use "/" ? Can someone explain me what is about that @ and why it is not mentioned in sed usage descriptions?
And the next one:
Code:
sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
-e 's@/var/spool/mail@/var/mail@' \
etc/login.defs.linux > /etc/login.defs
I copied exactly from the source (LinuxFromScratch book).
Why there is no a whitespace character after the first -e? Is it a mistake? But when I run this command I saw that it still worked fine. What is this all about? And again @ instead of /.
Maybe you could give a link where is something useful about @ charcter with sed?
Thanks for your patience.