From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079036515877.tru64-unix-managers.marc@archive.invalid> From: David Komanek Date: Tue, 23 Feb 1999 17:33:05 +0000 To: tru64-unix-managers Subject: SUMMARY: ksh script question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079036515877 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 >