[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNIX/Apple textfile/newline problems? Some remedies follow..



I noticed two typo's in my previous posting.

In article <Aug22.210155.29499@acs.ucalgary.ca>
sbdocker@acs.ucalgary.ca (Sean Brendan Dockery) writes:

| ----------------------- striplf (csh version) -----------------------
[ ... ]
| foreach file ($*)
| 	(cat $file | tr -d '\012') > /tmp/xxx
| 	mv xxx $file
           ^^^

Change to /tmp/xxx.

| ----------------------- striplf (ksh version) -----------------------
[...]
| for file in $*
| 	cat $file | tr -d '\012' > /tmp/xxx
| 	mv xxx $file
           ^^^

Change to /tmp/xxx.

Oops!  :)
-- 
 internet: dockery@griffin.cuc.ab.ca
      -or- sbdocker@acs.ucalgary.ca
      -or- dockery@pro-calgary.cts.com
 pro-line: dockery@pro-calgary