Xref: utzoo comp.sources.wanted:4270 comp.sources.d:2183 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!umd5!purdue!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.sources.wanted,comp.sources.d Subject: Re: Looking for "rename" program source previously posted Message-ID: <4075@csli.STANFORD.EDU> Date: 26 May 88 21:53:06 GMT References: <10910@cgl.ucsf.EDU> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 63 You should be able to pull this program out of the comp.sources.misc archives somewhere. If not, I have written a renaming program which does what is described in the man page, plus some extra stuff: RENAME(1J) Gandalf's Utilities Box RENAME(1J) NAME rename - change the names of a set of files SYNOPSIS rename specs... files... DESCRIPTION Rename will change the names of all the given files accord- ing to the replacement instructions and flags supplied in specs. The following options are available: -i (interactive) will prompt the user if the resulting file already exists. -v (verbose) produces a verbose protocol of what the pro- gram does. -l (lowercase) coerces all characters to lowercase charac- ters before any substitutions are performed. -t (trailing dot) remove any trailing dots from the file names before any substitutions are performed. -n (cut chars) cut the first n characters off the original filename before any substitutions are performed. The valid replacement specifications are old=new Replace all occurrences of old in a file name by the string new (no recursive substitutions, replacement is done left to right). string= Delete the substring string in all file names. ^prefix Use this prefix for all file names. =suffix Append this suffix to all file names. AUTHOR Juergen Wagner, CSLI, Stanford University (gandalf@csli.stanford.edu, formerly at Fraunhofer-Institute IAO, Stuttgart, Sun Release 3.2 Last change: 5th March, 1987 1 I've used this program a lot when I transferred friles between TOPS20 or MSDOS and UNIX (remove trailing dots, lowercase file names). I'll mail it on request. -- Juergen "Gandalf" Wagner, gandalf@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA