[ale] Sed equivalent for vi command
Jason Day
jasonday at worldnet.att.net
Fri Dec 6 10:44:39 EST 2002
On Fri, Dec 06, 2002 at 09:44:35AM -0500, Dow Hurst wrote:
> If in vi I issue:
>
> :23,23+20 d
>
> I get line 23 up to line 43 deleted. When I issue at the command line a
> sed command of:
>
> sed -e '23,23+20 d' inputfile > outputfile
I don't think you can use an expression like this for a sed address. If
you change the command to:
sed -e '23,43 d' inputfile > outputfile
it will work.
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list