From: David Komanek <xdavid () aragorn ! natur ! cuni ! cz>
To: tru64-unix-managers
Subject: SUMMARY: ksh script question
Date: Tue, 23 Feb 1999 17:33:05 +0000 [thread overview]
Message-ID: <96079036515877.tru64-unix-managers.marc@archive.invalid> (raw)
Here is an example how to do it : \t character in echo command gives the
TAB like an separator.
#!/bin/ksh
while read buffer
do
echo "$buffer\t`echo "$buffer" \
| tr -ds '\n' '' | tr '[:upper:]' '[:lower:]' `"
done < $1
David Komanek
> 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 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-23 17:33 David Komanek [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-19 0:46 SUMMARY: ksh script question Brehl, Blake
1999-02-23 14:22 SIMEONE, Allan J.
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