The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
vi or vim replace ,$ (eol) with just a comma dbauhaus UNIX and Linux Applications 6 10-02-2008 09:02 AM
Program to replace "cut" utility abb058 Shell Programming and Scripting 2 07-31-2006 12:18 PM
how to replace paste utility with sed/awk ssayeed Shell Programming and Scripting 1 10-28-2005 06:47 PM
Replace , (comma) with space mbarberis Shell Programming and Scripting 6 03-29-2005 10:35 AM
add comma alisevA3 UNIX for Dummies Questions & Answers 3 10-18-2002 09:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-06-2006
obedkhan obedkhan is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 8
sed utility to replace /307 with comma

Hi,

I have a requirement to replace '/307' with comma ',' .
for e.g. :
$ cat dm.dat
-------------
decimdal("\307") acct

$echo $l
\307

$echo $k
,

$sed -e "s/$l/$k/" dm.dat > dm1.dat
sed: Function s/\307/,/ cannot be parsed.

I want dm1.dat to be :

$ cat dm1.dat
-------------
decimdal(",") acct

Thanks in advance.
  #2 (permalink)  
Old 02-06-2006
aniseed's Avatar
aniseed aniseed is offline
Registered User
  
 

Join Date: Dec 2005
Location: Mumbai, India
Posts: 23
You need to have this like s/\\307/,/
Closed Thread

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 05:23 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