From: harris@zk3.dec.com (Bob Harris)
Subject: Re: Problem with DOS files tranfered to UNIX
Date: 1997/04/20 [thread overview]
Message-ID: <harris-ya023680002004972003560001@usenet.pa.dec.com> (raw)
In-Reply-To: 5j5gs9$a31$1@Commuter.ge-harris.com
In article <5j5gs9$a31$1@Commuter.ge-harris.com>, slale@ge-harris.com
(Shripad Lale) wrote:
>
> Put the following one line script in your path in a file (say), 'lcase':
>
> mv $1 `echo $1 | awk '{print tolower($0)}'`
>
> Then use :
>
> lcase <filename>
>
> to convert the filename to lowercase.
>
> One question to you wizards out there. Actually, this command is small
> enough to warrent being an alias. But the single quote (') character
> required in the awk command makes it very difficult. Any idea how you
> could make lcase into an alias instead of an one line executable file?
So try a different approach
alias lcase 'echo $1 | tr "[A-Z]" "a-z"'
That should do the same thing.
--
Bob Harris
I don't get to tell me what to do, I only get to tell me how to do it.
The opinions expressed are my own and do not represent Digital Equipment
Corporation
next prev parent reply other threads:[~1997-04-20 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-13 4:00 Problem with DOS files tranfered to UNIX Kaj Stengade Christensen
1997-04-17 4:00 ` Shripad Lale
1997-04-20 4:00 ` Bob Harris [this message]
1997-04-17 4:00 ` Alan Hughes
1997-04-17 4:00 ` Hans Schwengeler, Astronomical Institute, Tel. 2055422
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox