Kent --

...and then kent ho said...
% 
% Hi All,
%  Just a generic "sed" question, please help.

Don't you think, then, that you'd be more likely to get a useful answer
on a sed list?(!!?)


% 
% How do I pass a variable to this sed command:
% 
% MONTH="Mar"
% sed '/$MONTH/,$d' foo > foo.new

Use interpolating quotes.  Better yet, use perl.


% 
% Thanks,
% 
% Kent


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg28014/pgp00000.pgp
Description: PGP signature

Reply via email to