SUMMARY: ksh script question

From: SIMEONE, Allan J. <Allan.SIMEONE_at_rp-rorer.com>
Date: Tue, 23 Feb 1999 09:22:54 -0500

Just like that, I received about 15 answers! I knew it was
an easy one. Thanks for the quick answers and too many to
list here individually.

Here are some examples:

cat file.in | awk '{ print $1 " " tolower($1) }' >file.out

_____________

touch output
cat input | while read line
do
        echo $line `echo $line | tr '[A-Z]' '[a-z]'` >> output
done

_______________

cp file temp
dd if=temp conv=lcase of=temp2
paste temp temp2 > temp3



I only tried the first example and it worked fine.

original question follows.

thanks!
Allan


> ----------
> From: SIMEONE, Allan J.
> Sent: Tuesday, February 23, 1999 9:03 AM
> To: 'Tru64-unix-managers_at_ornl.gov'
> Subject: ksh script question
>
> Hi All,
>
> Ksh script question.
>
> I have a file with the following (for example:)
>
> ABC123X
> DEF123Z
> GHI456A
>
> I need to get an output file with the following...
>
> ABC123X abc123x
> DEF123Z def123z
> GHI456a ghi456a
>
> Basically change the line to lower case but have both in the file.
> There would be about 100 lines in the file.
>
> Can anyone send me an example on how to do this?
>
> thanks,
> Allan
>
Received on Tue Feb 23 1999 - 14:32:49 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT