SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old December 28th, 2004, 10:52 PM
msima msima is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 msima User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 48 sec
Reputation Power: 0
Smile sed help please !!!!!!!!!!!!!

Hi,

Can anyone tell me how to combine two conditions on sed command.. I mean, I want to make some changes on all the lines starting with "GRAM" but not on the lines starting with "GRAMMAR" in a file.
please help me..
thank you so much
msima

Reply With Quote
  #2  
Old December 29th, 2004, 04:21 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
the regexp: /GRAM/ matches GRAM and GRAMMAR everywhere in the line
the regexp: /^GRAM/ matches GRAM and GRAMMAR at line begin
the regexp: /^GRAM\>/ matches GRAM at line begin
the regexp: /\<GRAM\>/ matches GRAM everywhere in the line

Reply With Quote
  #3  
Old December 29th, 2004, 06:25 AM
msima msima is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 msima User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 48 sec
Reputation Power: 0
Hi guggach,
Thank you very much for your reply..I was really in need of that.
Thanks
best regards,
msima

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > sed help please !!!!!!!!!!!!!


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway