Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: A challenge for UNIX wizards


Article: 7947 of alt.hackers
From: seca40%teach@dcs.shef.ac.uk (Fauzan Mirza)
Newsgroups: alt.hackers
Subject: Re: A challenge for UNIX wizards
Date: 2 Jun 1995 19:06:40 GMT
Organization: Sheffield University
Lines: 22
Approved: Big Brother
Message-ID: 3qnng0$3on@hippo.shef.ac.uk
NNTP-Posting-Host: suna22.dcs.shef.ac.uk
X-Newsreader: TIN [version 1.2 PL2]
Status: RO

Christopher Biggs (chris@stallion.oz.au) wrote:
: set@oryx.llnl.gov (Sam Trenholme) wrote:
: > 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)

How about (for bash users):
for i in *man ; do mv $i ${i%man}1 ; done

--Fauzan

ObHack:
  Log out of NetWare using
    copy con bye.com
    <ALT-180><ALT-215><ALT-205><SHIFT-1><ALT-205><SPACE><CTRL-Z><ENTER>
    bye

========================================================================
 Fauzan Mirza           Dept of Computer Science   DOS/NetWare/Linux
 F.U.Mirza@shef.ac.uk   University of Sheffield    Programming/Security
========================================================================



Parent Parent

Back to index