The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
delete blank space in begining of line karthikn7974 Shell Programming and Scripting 4 05-07-2008 01:40 AM
How to get last non-blank line? tqlam Shell Programming and Scripting 6 01-17-2008 04:13 PM
insert text and add blank line athidhi Shell Programming and Scripting 7 08-16-2007 08:56 AM
adding blank line in egrep antalexi UNIX for Dummies Questions & Answers 2 05-24-2004 09:40 AM
Insert blank line if grep not found michieka Shell Programming and Scripting 6 01-04-2004 11:03 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Blank line ?

How to give a new blank line in a file using script ?

The command should be using echo

Thanks !!
Reply With Quote
Forum Sponsor
  #2  
Old 09-10-2007
robotronic's Avatar
Can I play with madness?
 

Join Date: Apr 2002
Location: Italy
Posts: 370
Code:
echo "\n" >> file.out
or, if it doesn't work:

Code:
echo -e "\n" >> file.out
Reply With Quote
  #3  
Old 09-10-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Code:
echo >> yourfile
is sufficient to give a new line.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:05 AM.


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