Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!seismo!rochester!ken From: ken@rochester.UUCP Newsgroups: net.sources Subject: Re: rename(3): program to modify a set file names Message-ID: <25437@rochester.ARPA> Date: Sun, 1-Mar-87 15:44:30 EST Article-I.D.: rocheste.25437 Posted: Sun Mar 1 15:44:30 1987 Date-Received: Mon, 2-Mar-87 22:37:50 EST References: <486@myrias.UUCP> Reply-To: ken@rochester.UUCP (SKY) Organization: U of Rochester, CS Dept, Rochester, NY Lines: 8 I thought I would share my often used one-liner to change (for example) .pas suffixes to .p: ls *.pas | sed 's/\(.*\)\.pas$/mv & \1.p/' | sh Adding and deleting portions is left as an exercise for the reader. Ken