LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-13-2009, 09:34 AM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
newbie problem: bash scripting


Hi,

I am new to bash programming, but I have noticed that many bash script starting with

#!/bin/sh
# $ID, xxx,sh, v 0.92 2008/04/23 12:23:03 root Exp root $

I understand the first line is to invoke /bin/sh, but what for the second line is used, is there any rule of how to write the second line?
 
Old 11-13-2009, 09:43 AM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
That second line is just a comment that shows versioning and what the file is actually named. You can totally omit that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie bash scripting questions. xyhua Programming 4 06-10-2009 06:05 PM
Help a newbie conceptualize bash scripting... Mohtek Programming 2 07-10-2006 09:35 AM
Newbie Bash Scripting Question jsaxton86 Programming 2 11-26-2005 07:58 PM
Newbie Bash scripting question Caidence Programming 2 08-03-2003 04:53 AM
Newbie bash scripting question... cmfarley19 Linux - Newbie 2 05-03-2003 08:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration