The UNIX and Linux Forums  

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
zip utility on HP-UX jgutierrez29 UNIX for Dummies Questions & Answers 1 06-22-2005 12:10 PM
AWK utility malaymaru UNIX for Dummies Questions & Answers 3 05-04-2005 10:27 PM
BRU utility sherbet808 UNIX Desktop for Dummies Questions & Answers 7 06-20-2003 07:22 AM
sar utility srinivasp UNIX for Advanced & Expert Users 2 11-15-2002 07:31 AM
awk utility dilipluhar High Level Programming 2 06-19-2001 02:13 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2005
Registered User
 

Join Date: May 2005
Posts: 54
Sed utility

Hi,

Can you explain little bit with example regarding SED utility in UNIX?
How iit is different then grep command?

Thanks in advance.

Malay
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-03-2005
Registered User
 

Join Date: Jan 2005
Posts: 212
sed is the stream editor.

Generally used to search and replace some parameters, while its capability is enormous.

Eg. if you want to replace all a with b then

echo abca | sed 's/a/b/g'
bbcb
Reply With Quote
  #3 (permalink)  
Old 05-03-2005
Registered User
 

Join Date: May 2005
Posts: 54
Thanks for the reply.

Can you give me a proper link/documents where I can take a look for SED.

Malay
Reply With Quote
  #4 (permalink)  
Old 05-04-2005
Registered User
 

Join Date: Jan 2005
Posts: 212
How about
man sed
Reply With Quote
  #5 (permalink)  
Old 05-04-2005
RishiPahuja's Avatar
Registered User
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
Sed is the stream line editior where u can do the editing on the fly.
The power provided by sed is enormous.

Grep is used simply for pattern matching in the files.

With sed u can write ur own grep

best reference is man for the OS u r using.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:18 PM.


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

Content Relevant URLs by vBSEO 3.2.0