The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-23-2007
Registered User
 

Join Date: Jul 2007
Posts: 3
Question \n after EOF

Hello all,
I have unix file that ends with the following EOF '9999999999'
I want to remove the '\n' character after EOF. What is the command that should be included in the script, before sending the file?
will this work:
$ echo "<99999999999>\c" >> <filename>

thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 07-23-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
"\c" should be enough to suppress the trailing newline, according to the man pages.
Reply With Quote
  #3  
Old 07-23-2007
Registered User
 

Join Date: Jul 2007
Posts: 3
I am using an FTP script and do not understand how to incorporate this?
should I run a unix command, prior to running the Ftp script?
I am novice at Unix and any help would be highly appreciated.
Reply With Quote
  #4  
Old 07-23-2007
Registered User
 

Join Date: Jul 2007
Posts: 3
How can I use echo command with Ftp script to achieve the above functionality,.. please help
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0