awk script that works like "cut"

awk script that works like "cut"

Post by steve scriva » Thu, 09 Jan 1992 15:36:48



Does anyone have an awk script they could share that works like the "cut"
command that cuts vertically through a file.  I need one that utilizes flags
for specifying start and stop positions.  For example if I wanted to cut
vertically from position 25 through 50 I would want the script to accept a
flag as (script command) -25 -50 [file to cut].

Any help would be appreciated.  Thanks.