From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96533272809303.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Thu, 03 Aug 2000 19:59:14 +0000 To: tru64-unix-managers Subject: Summary: Eliminating Trailing \n in a text file.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96533272809303 Suggestions varied from using PERL, and dd to chop off the last character. Also tr -d was suggested. I opted for another choice in the meantime. since it was only 8 characters, I used cat to enter my data. Instead of hitting Enter, It Hit ^D twice. Thanks for the replies George >-----Original Message----- >From: George Gallen [mailto:ggallen@slackinc.com] >Sent: Thursday, August 03, 2000 3:50 PM >To: 'tru64-unix-managers@ornl.gov' >Subject: Eliminating Trailing \n in a text file.. > > >OK. This is driving me nuts (and not a far drive either). > >I want to manually enter a text file of 8 characters, >I use vi, type my 8 characters, wq out and my file size is 9. > >I tried using head to only take 8 characters and write into >another file >and still, it's magically back to 9. > >How do I stop that trailing \nl? > >I'm trying to build a font download file, and the printer is >coughing at >the extra \nl in the prefix file. > >Oh yea, DU 3.2c on a AS2100 > >George > >George Gallen >Senior Programmer/Analyst >Accounting/Data Division >ggallen@slackinc.com >ph:856.848.1000 Ext 220 > >SLACK Incorporated - An innovative information, education and >management >company >http://www.slackinc.com >