Re: A challenge for UNIX wizards
Article: 7879 of alt.hackers From: edp@math.zk3.dec.com (Eric Postpischil) Newsgroups: alt.hackers Subject: Re: A challenge for UNIX wizards Date: 25 May 1995 20:29:06 GMT Organization: Digital Equipment Corporation Lines: 24 Approved: edp Distribution: world Message-ID: 3q2pai$107@jac.zko.dec.com Reply-To: edp@mv.com NNTP-Posting-Host: math.zk3.dec.com Status: RO
In article <3q185g$3je@lll-winken.llnl.gov>, set@oryx.llnl.gov (Sam Trenholme) writes: >Ok guys, is there a way of doing this without using a temporary file: > >ls | awk 'BEGIN{FS="."}{print "mv "$0" "$1".1"}' > l;chmod 700 l;l;rm l > >(The above made a list of files, foo.man, bar.man, etc. have the names >foo.1, bar.1, etc) Pipe it to a shell: ls | awk 'awk_program' | sh -- edp (Eric Postpischil) "Always mount a scratch monkey." edp@mv.com Disclaimer: The opinions of Digital Equipment Corporation do not reflect mine. Public key fingerprint: 8e ad 63 61 ba 0c 26 86 32 0a 7d 28 db e7 6f 75. To get PGP, FTP /pub/pgp/pgp26uis.zip or pgp26uix.zip from ftp.demon.co.uk.