Commenting lines | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

Commenting lines

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-20-2007
rolex.mp rolex.mp is offline
Registered User
 
Join Date: Feb 2007
Last Activity: 9 June 2007, 6:00 AM EDT
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Commenting lines

How to comment a set of lines in a script?

we use # to comment a single line , is there ant other cmd to comment a block?
Sponsored Links
    #2  
Old 02-20-2007
BOFH BOFH is offline Forum Advisor  
Registered User
 
Join Date: Feb 2005
Last Activity: 7 May 2012, 4:35 PM EDT
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
Shell scripts are read a single command at a time so you can't block comment. You'll have to put a # in front of each line.

Carl
Sponsored Links
    #3  
Old 02-21-2007
c2b2 c2b2 is offline
Registered User
 
Join Date: Dec 2006
Last Activity: 3 May 2007, 12:31 PM EDT
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
R u sure BOFH?

Check http://unix.com/showthread.php?t=35510 for answer
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Commenting multiple lines venkatesht UNIX for Dummies Questions & Answers 3 09-15-2010 06:58 AM
commenting out lines between two delimiters Bruble Shell Programming and Scripting 2 06-04-2010 07:03 AM
Commenting lines in a file using SED meetu Shell Programming and Scripting 9 03-02-2010 08:02 PM
Commenting lines Aditya.Gurgaon Shell Programming and Scripting 2 11-10-2009 06:59 AM
commenting xml file lines scorpio Shell Programming and Scripting 6 04-28-2009 08:29 PM



All times are GMT -4. The time now is 12:58 PM.