[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Sed equivalent for vi command



I believe what you want is:

sed 20,43d inputfile > outputfile

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 get a "Unrecognized command: 23,23+20 d" back from the sed command. Is 
> there a way to do this using sed?
> Dow
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale