[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A problem with case of filenames



Hi

Use 'tr' for case translations.  thats what its for.
(something like "tr 'A-Z' 'a-z' < oldfile > newfile")
(use a 'foreach' to do it to all your files)

for more sophisticated search/replace use 'sed' and 'awk'.

	Yoav

On Thu, 10 Jul 1997, Tuvik Beker wrote:

> Hi,
> 
> I have a huge and ancient application (a 200M source tree) that I want
> to port to linux (something technical in fortran).
> The most basic problem is the following: it was originally written on
> VAX, and the  programmer/s refer to the various files from within the
> sources in lower- upper- and mixed-case. No problem on a stupid VAX, but
> enough to drive anyone working on UNIX crazy...
> What I basically need to do is a. Turn all filenames to lowercase b.
> Find all the references to any file within this source tree (includes
> and such) and turn these to lowercase as well.
> I still don't have the sources, so there's time to think about the
> simplest way to accomplish that. I guess writing a perl script will be
> inevitable, but I might be wrong (after all, people around here started
> using perl instead of tail...). Your suggestions are most welcome.
> 
> Thanks,
> Tuvik
> -- 
> _______________________________________
>              Tuvik Beker
>         becket@shum.huji.ac.il
>  Tel. 03-5714436       Fax. 03-5334349  
> _______________________________________
> 


References: