AWK experts - how would I code around this in awk...

Karl Auer kauer at biplane.com.au
Mon Feb 22 00:49:48 UTC 2010


On Mon, 2010-02-22 at 00:21 +0000, Steve Flynn wrote:
> > tr -d "\n\r" <oldfile | fold -w 20 >newfile
> >
> > My guess is that it will prove fastest esp. with a multi core cpu;
> > common these days.

Provided it does not read everything in at once. Sometimes these
utilities were very badly written. It doesn't need to read everything
in, but it may do...

> I'll see if there's a version on AIX 5.3L...

The sources to such things are generally very simple and should compile
easily on AIX. Whether it is worth seeking out fold given that the
solutions you have ARE fold (effectively) is another question...

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)

GPG fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
Old fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A 7DEF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100222/a58d3be0/attachment.pgp>


More information about the ubuntu-users mailing list