From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: Summary: Eliminating Trailing \n in a text file..
Date: Thu, 03 Aug 2000 19:59:14 +0000 [thread overview]
Message-ID: <96533272809303.tru64-unix-managers.marc@archive.invalid> (raw)
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
>
reply other threads:[~2000-08-03 19:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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