Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!gem.mps.ohio-state.edu!usc!ucsd!ucbvax!hplabs!hpfcso!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.unix.wizards Subject: Re: HELP converting filenames! Message-ID: <5980060@hpfcdc.HP.COM> Date: 11 Oct 89 00:07:25 GMT References: <9234@pyr.gatech.EDU> Organization: HP Ft. Collins, Co. Lines: 18 Having seen a few postings with lines like: > mv $old `echo $old | tr A-Z a-z` I thought it worth pointing out that tr syntax is different in BSD and SysV systems. In System V this command line will only convert A and Z characters to lower-case, leaving B-Y untouched. The SysV (and POSIX.2 Draft 9) syntax is mv $old `echo $old | tr '[A-Z]' '[a-z]'` While I'm at it, note that both SysV and BSD echo will do strange things with certain filenames ( -n for BSD, names with backslashes for SysV). This can be avoided with a here-document. Bob Lenk rml@hpfcla.hp.com hplabs!hpfcla!rml