translate this send into perl
sfgroups_at_gmail.com
Date: 03/16/05
- Next message: Red: "Re: translate this send into perl"
- Previous message: Glenn Jackman: "Re: Probably a dumb s/// question."
- Next in thread: Red: "Re: translate this send into perl"
- Reply: Red: "Re: translate this send into perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Mar 2005 12:08:47 -0800
How will I do this in perl?
print 1 line of context before and after regexp, with line number
# indicating where the regexp occurred (similar to "grep -A1 -B1")
sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h
Thanks
Sundaram
- Next message: Red: "Re: translate this send into perl"
- Previous message: Glenn Jackman: "Re: Probably a dumb s/// question."
- Next in thread: Red: "Re: translate this send into perl"
- Reply: Red: "Re: translate this send into perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]