Off topic - KSH reading text files

From: Smith, Kevin (kevin.m.smith@siemens.com)
Date: Mon Sep 20 2004 - 10:11:39 EDT


Off topic, but I'd thought I'd ask anyway.

Can anyone think of a way of reading a variable length text file TWO lines
at a time?

Obviously you can "cat file | read line" but this only does a line at time.

Any ideas anyone?

      ---------------------------------------------------
        Kev Smith
        Unix Systems Administrator.
        Operational Support, IND Croydon.

        E-Mail: kevin.m.smith AT siemens.com
        Tel: 020 8760 3358
        Mob: 07808 828595
        ---------------------------------------------------

        This e-mail contains confidential information and is for the
exclusive use of the addressee/s. If you are not the addressee, then any
distribution, copying or use of this e-mail is prohibited. If received in
error, please advise the sender and delete it immediately. We accept no
liability for any loss or damage suffered by any person arising from use of
this e-mail.

Siemens Business Services Limited
Registered No: 1203466 England
Registered Office: Siemens House, Olbury, Bracknell, Berkshire, RG12 8FZ
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:28 EDT