The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
doubt in awk jisha Shell Programming and Scripting 4 04-16-2008 01:02 AM
AWK doubt Rafael.Buria Shell Programming and Scripting 2 02-06-2008 07:00 AM
doubt about awk soujanya_srk UNIX for Dummies Questions & Answers 2 01-10-2008 01:26 PM
awk doubt.. esham Shell Programming and Scripting 11 10-10-2007 11:24 PM
ftp doubt ranj@chn Shell Programming and Scripting 0 01-04-2006 04:47 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2005
esham's Avatar
Registered User
 

Join Date: Nov 2004
Location: INDIA
Posts: 97
doubt it sed

Hello..

i want to use variable in sed..
like
sed 's/ROOTMAILID/$variable/g' conf.test

but its not working..
please help

thanks in advance

esham
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-07-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
use double quotes ..
like this

Code:
sed "s/ROOTMAILID/$variable/g" conf.test
Reply With Quote
  #3 (permalink)  
Old 03-07-2005
esham's Avatar
Registered User
 

Join Date: Nov 2004
Location: INDIA
Posts: 97
thanks ..that worked.....

Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0