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
HP/Ux pcl printing piooooter HP-UX 2 05-23-2007 12:56 AM
Need Printing help Please donnieb79 UNIX for Dummies Questions & Answers 1 01-23-2004 02:14 PM
Printing Problems in unix ... ( Bar-cdoe - Ip Printing) QuickSilver UNIX for Advanced & Expert Users 3 06-04-2002 07:48 AM
TCP/IP printing on SCO 2.1.3 eel_king IP Networking 2 01-29-2002 03:33 PM
Printing SYMTRAX UNIX for Dummies Questions & Answers 3 01-24-2002 03:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2007
Registered User
 

Join Date: Feb 2006
Posts: 77
printing \n

Hi all,

In a script I need to print a string:

print "\n";

but i am not able to print the above mentioned string...
Please help.

Regards
Rochit
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-27-2007
Registered User
 

Join Date: Jul 2006
Posts: 139
print "\\\n"
Reply With Quote
  #3 (permalink)  
Old 08-27-2007
Registered User
 

Join Date: Feb 2006
Posts: 77
thanks but I need to print

print "\n";

and the command you have provided does not give this output.
Reply With Quote
  #4 (permalink)  
Old 08-27-2007
Registered User
 

Join Date: Jul 2006
Posts: 139
If u want to print

all "print \n;"

then

print "print \\\n;"
Reply With Quote
  #5 (permalink)  
Old 08-27-2007
Registered User
 

Join Date: Feb 2006
Posts: 77
hi boss....

I wish to print

print "\n";

and not

"print \n;"
Reply With Quote
  #6 (permalink)  
Old 08-27-2007
radoulov's Avatar
addict
 

Join Date: Jan 2007
Location: Milan, Italy/Varna, Bulgaria
Posts: 1,551
What shell?

For ksh/zsh:

Code:
$ print -r 'print "\n";'
print "\n";
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:41 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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0