home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!acorn!ixi!ixi!pd
- From: pd@x.co.uk (Paul Davey)
- Newsgroups: comp.unix.questions
- Subject: Re: need script to rename uppercase filenames
- Message-ID: <PD.92Sep10132610@herts.x.co.uk>
- Date: 10 Sep 92 13:26:10 GMT
- References: <699@svcs1.UUCP> <1992Sep3.135042.29363@walter.bellcore.com>
- <1992Sep8.022910.4634@ddsw1.mcs.com>
- Sender: paul@x.co.uk (Paul Davey)
- Organization: IXI Ltd.
- Lines: 14
- In-Reply-To: dattier@ddsw1.mcs.com's message of 8 Sep 92 02:29:10 GMT
-
- >>>>> On 8 Sep 92 02:29:10 GMT, dattier@ddsw1.mcs.com (David W. Tamkin) said:
-
- David> | You could also do this with a one-liner:
- David> |
- David> | cat $1 | tr -d '\015' > `echo $1 | tr [A-Z] [a-z]`
-
- David> That's the third time in this thread I've seen a suggestion to cat one file
- David> to a pipe. It's better to save a process and
-
- David> tr -d '\015' < $1 > ...
-
- But with the first example you can pipe into it when $1 is unset.
-
- somecommand | cat $1 | tr -d '\015' > `echo $1 | tr [A-Z] [a-z]`
-
-
- Yer pays yer money and yer take's yer choc ice.
- --
- Regards, pd@x.co.uk IXI Ltd.
- Paul Davey pd@ixi.uucp 62-74 Burleigh St.
- ...!uunet!ixi!pd Cambridge, U.K.
- "These _are_ interesting times" +44 223 462 131 CB1 1OJ
-