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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
doubt reg SCP rogerben UNIX for Dummies Questions & Answers 4 05-18-2009 09:42 AM
Doubt salil2012 UNIX for Dummies Questions & Answers 1 03-05-2009 11:33 AM
doubt on awk venkatesht Shell Programming and Scripting 6 12-11-2008 04:11 AM
Doubt?? nohup Shell Programming and Scripting 1 12-02-2008 11:24 AM
SDL doubt royalibrahim High Level Programming 0 11-22-2007 01:49 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-30-2009
vasanth.vadalur vasanth.vadalur is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 24
sed doubt...

Hi,

i need find and replace a sting with a new variable having value as spaces in between.

Eg:

set a = "i am variable"
set b = "i am second"

sed -e 's/find_string/'$a'/g' -e 's/find2_str/'$b'/g' input_file


here it is giving error...

How to get an varaible, which is having space..

Thanks in advance,
Vasanth

---------- Post updated at 08:42 AM ---------- Previous update was at 08:33 AM ----------

Hi

anybody there to help me on this issue.

Vasanth
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0