Re: Help a sed noob

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff King <peff@...>, Nguyen Thai Ngoc Duy <pclouds@...>, Git Mailing List <git@...>
Date: Saturday, August 4, 2007 - 8:26 am

martin f krafft wrote:

This is basic sed scripting.


-ne means "don't print, execute the following code".

/.../ should be clear, { starts a "function list"
s// is "match last regexp, so s/// is "match last regexp and replace with empty string.
flag "p" to function "s" means "print if matched"
q is "quit".

that's really straight forward and all documented in my sed(1).

cheers
  simon

-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Help a sed noob, Nguyen Thai Ngoc Duy, (Fri Aug 3, 7:22 pm)
Re: Help a sed noob, martin f krafft, (Sat Aug 4, 6:31 am)
Re: Help a sed noob, Jeff King, (Sat Aug 4, 7:50 am)
Re: Help a sed noob, martin f krafft, (Sat Aug 4, 8:18 am)
Re: Help a sed noob, Jeff King, (Sat Aug 4, 8:40 am)
Re: Help a sed noob, Simon 'corecode' Schubert..., (Sat Aug 4, 8:26 am)
Re: Help a sed noob, martin f krafft, (Sat Aug 4, 9:56 am)
Re: Help a sed noob, David Kastrup, (Sat Aug 4, 10:06 am)
Re: Help a sed noob, , (Fri Aug 3, 7:40 pm)
Re: Help a sed noob, Junio C Hamano, (Fri Aug 3, 7:38 pm)
Re: Help a sed noob, Nguyen Thai Ngoc Duy, (Fri Aug 3, 8:06 pm)