Thanks for the explanation with example. Prosun Prodhan 09339192066(M) Registered Linux User # 318610 (LiCo : http://www.linuxcounter.net, formerly http://counter.li.org)
Use Open Document Format. Try OpenOffice (http://www.openoffice.org) or LibreOffice (http://www.libreoffice.org) - Free Of Cost. [When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." - Linus Torvalds] NOTICE: This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain malware - harmful to the system. The sender therefore does not accept liability for any errors or omissions in the contents/attachments of this message, which arise as a result of e-mail transmission. Please note that this is a PERSONAL mail-id and any views or opinions presented in this email are solely those of the author and do not necessarily represent those of any company. On Sat, Dec 6, 2014 at 3:08 AM, ToddAndMargo <[email protected]> wrote: > Hi All, > > This took me an very frustrating hour to figure out. Especially > since I was looking for something like awk's "-F" command. > > I hope this save someone else from pulling their hair out! > (I was trying to do a substitution with a ton of forward slashes > in it from a variable. AAAAHHHHH!!!!!) > > -T > > > > Example of substitute example: > > > $ echo "$(echo "TRUE" | sed -e 's/TRUE/FALSE/g')" > FALSE > > "g" is for "global" > > > > Example with variables (use full quotes): > > $ X="abcd" > $ Y="xyz" > $ echo $X | sed -e "s/${X}/${Y}/" > xyz > > > If a variable uses a "/" inside it, use a different "delimiter" (the > first character after the "s" tells sed what the delimiter is): > > > $ X="./abcd" > $ Y="./xyz" > $ echo $X | sed -e "s|${X}|${Y}|" > ./xyz >
