LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2014, 11:33 AM   #1
Gremlin022
Member
 
Registered: Jun 2014
Posts: 36

Rep: Reputation: Disabled
What does !# <text> mean inside a file?


Can anyone tell me, what does:

Code:
!# <text>
mean inside a file?

I'm editing a mirrorlist for pacman and see tons of lines with !# in front of them. I know ## means a comment, but not what !# means and don't want to break anything.

Thanks!
 
Old 07-09-2014, 11:47 AM   #2
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
That's called shebang....basically it tells the OS what shell/interpreter to use to execute the script.
 
1 members found this post helpful.
Old 07-09-2014, 12:00 PM   #3
Gremlin022
Member
 
Registered: Jun 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Great! Thank you!
 
Old 07-09-2014, 12:33 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Except that a shebang is #!, not !#. I don't know what "!#" is other than a typo, or a 2 letter expletive
 
1 members found this post helpful.
Old 07-09-2014, 01:01 PM   #5
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
Oh jeez, I'm a little dyslexic this morning. Sorry!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
extracting values from web page to simple text file (inside a bash script) ondoho Linux - General 5 06-29-2014 12:51 PM
[SOLVED] Thorough search for a text file with a specific keyword inside educateme Linux - General 6 10-11-2013 10:34 AM
[SOLVED] Bash command to 'cut' text into another text file & modifying text. velgasius Programming 4 10-17-2011 05:55 AM
text match pipe to file then delete from original text file create new dir automatic tr1px Linux - Newbie 6 09-10-2008 10:40 PM
How to parse text file to a set text column width and output to new text file? jsstevenson Programming 12 04-23-2008 03:36 PM


All times are GMT -5. The time now is 05:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration