Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!eos!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Need a file renaming facility Message-ID: <7772@brl-smoke.ARPA> Date: 27 Apr 88 15:29:03 GMT References: <3564@fluke.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 5 In article <3564@fluke.COM> inc@tc.fluke.COM (Gary Benson) writes: >Now I want to rename all those ".pre" files to the same name without ".pre". What I usually do in such circumstances is: for i in *.pre; do mv $i `basename $i .pre`; done