So, I had a lot of answers -- over 40 and still coming, so it would too long to credit each person. Thanks to all. Most recommended using tr, there was one nice perl solution, a couple of awk answers. And, a couple using cat. Here is the one where I've based what I've done. I went this way just because the files are small and this is quick: Bruce, If you only have 3 to 4 line files then let the shell do it for you: $ cat > foobar line 1 line 2 line 3 line 4 ^D $ myvar=`cat foobar` $ echo $myvar > foobar.new line 1 line 2 line 3 line 4 Bruce Purcell _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed Feb 18 16:36:45 2004
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:26 EST