[Novalug] bash question

John Place novalug@unixsage.com
Tue Aug 12 13:40:34 EDT 2014


echo SomeTestSTRING | awk '{print tolower($0)}'

someteststring

Thanks
John

On 08/12/2014 01:32 PM, James Ewing Cottrell, III via Novalug wrote:
> Let's all not forget that dd will do case conversion too:
>
> var=$(echo $var | dd conv=lcase) # yuck
>
> JIM
>
> ----- Original Message -----
> From: "Michael Henry via Novalug" <novalug@firemountain.net>
> To: novalug@firemountain.net
> Sent: Tuesday, August 12, 2014 7:36:16 AM
> Subject: Re: [Novalug] bash question
>
> On 08/12/2014 01:45 AM, James Ewing Cottrell III via Novalug wrote:
>> Then again, seems like you've never heard of declare:
>>
>> declare -l lowercase=$mixed_case
>> declare -u uppercase=$mixed case
> The switches ``-l`` and ``-u`` were unfamiliar to me; I've used
> ``declare -a`` when using arrays, and that's about it.  This
> made me want to find all references to "lowercase" in the man
> page.  Interestingly, almost all are spelled "lowercase", but
> for ``declare``, it's spelled "lower-case".  Even if I'd thought
> to look around for other answers, I might not have looked for
> "lower-case" unless I knew I wasn't finding everything with
> "lowercase".
>
> Michael Henry
>
> **********************************************************************
> The Novalug mailing list is hosted by firemountain.net.
>
> To unsubscribe or change delivery options:
> http://www.firemountain.net/mailman/listinfo/novalug
> **********************************************************************
> The Novalug mailing list is hosted by firemountain.net.
>
> To unsubscribe or change delivery options:
> http://www.firemountain.net/mailman/listinfo/novalug




More information about the Novalug mailing list