nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

need help in sed command

This is a discussion on need help in sed command within the Coding in General forums, part of the Development/Scripting category; Hi all , I want one sed command which will search for pattern <param-value>sfdc1crm</param-value> and Replace it with <param-value>VISHAL</param-value>...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-24-2008, 03:52 PM
Junior Member
User
 
Join Date: May 2007
Posts: 4
Rep Power: 0
vishal_titre is on a distinguished road
Default need help in sed command

Hi all ,

I want one sed command which will search for pattern
<param-value>sfdc1crm</param-value> and Replace it with
<param-value>VISHAL</param-value>
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-24-2008, 11:19 PM
agn agn is offline
Member
User
 
Join Date: Feb 2008
My distro: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Rep Power: 1
agn is on a distinguished road
Default

Code:
sed 's%<param-value>sfdc1crm</param-value>%<param-value>VISHAL</param-value>%' file
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 +5.5. The time now is 11:05 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36