tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary:  Eliminating Trailing \n in a text file..
@ 2000-08-03 19:59 George Gallen
  0 siblings, 0 replies; only message in thread
From: George Gallen @ 2000-08-03 19:59 UTC (permalink / raw)
  To: tru64-unix-managers

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
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-03 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-03 19:59 Summary: Eliminating Trailing \n in a text file George Gallen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox