On Thu, 10 Mar 2005, Christopher M. Jones wrote:
> I need a quick script (any language) to put the (e.g.) eighth through
> twelfth character of each line of a plain text file into a separate
> file, each set of characters on a new line. I've forgotten all my sed
> and awk, and I just don't have the time to work it all out. Can anyone
> post a few lines to me?
No need for sed or awk:
cut -c 8-12 SOURCE_FILE > TARGET_FILE
Dave
/L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\
Dave Cash Power to the People!
Frolicking in Fields of Garlic Right On-Line!
dave@gnofn.org Dig it all.
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/11/05
This archive was generated by hypermail 2.2.0 : 12/19/08 EST