From: "SIMEONE, Allan J." <Allan.SIMEONE () rp-rorer ! com>
To: tru64-unix-managers
Subject: SUMMARY: ksh script question
Date: Tue, 23 Feb 1999 14:22:54 +0000 [thread overview]
Message-ID: <96079036515871.tru64-unix-managers.marc@archive.invalid> (raw)
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@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
>
next reply other threads:[~1999-02-23 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-23 14:22 SIMEONE, Allan J. [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-02-23 17:33 SUMMARY: ksh script question David Komanek
2008-03-19 0:46 Brehl, Blake
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