LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-06-2015, 10:17 AM   #1
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 222

Rep: Reputation: 8
where does the bash command stop


hi guys, im trying to understand the bash rules or hash tag rules.

my understanding is the the everything to the right of the bash command is not executed? is this right? and you disable it by using a new line to enter executable commands?
 
Old 05-06-2015, 10:55 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes, after the character '#' everything is comment till end of line (newline). So you have to start next command after the newline.
 
Old 05-06-2015, 01:32 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,469

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Note that the "#" character is special to the shell only at the start of a word. Compare
Code:
echo hash#tag
echo hash #tag
 
Old 05-06-2015, 10:01 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,768
Blog Entries: 27

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Member response

Hi,

Quote:
Originally Posted by dunnery View Post
hi guys, im trying to understand the bash rules or hash tag rules.

my understanding is the the everything to the right of the bash command is not executed? is this right? and you disable it by using a new line to enter executable commands?
Maybe the following will allow some self help;
Quote:
Just a few links to aid you to gaining some understanding;
Hope this helps.
Have fun & enjoy!
 
Old 05-07-2015, 07:06 PM   #5
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 222

Original Poster
Rep: Reputation: 8
thanks guys. great stufff
 
Old 05-09-2015, 06:45 AM   #6
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 222

Original Poster
Rep: Reputation: 8
Wow onebuck. Thanks for that link. The ultimate linux guide is the coolest. Very clear and easy to understand. I wish I had found this 6 weeks ago. It would have saved me a lot of pondering and searching. Brilliant stuff.
 
Old 05-09-2015, 08:29 AM   #7
standards
Member
 
Registered: May 2015
Posts: 54

Rep: Reputation: Disabled
Found some linux scipting books also:
http://libgen.org/search.php?req=lin...e=1&column=def
 
Old 05-09-2015, 11:34 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,768
Blog Entries: 27

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Member response

Hi,
Quote:
Originally Posted by dunnery View Post
Wow onebuck. Thanks for that link. The ultimate linux guide is the coolest. Very clear and easy to understand. I wish I had found this 6 weeks ago. It would have saved me a lot of pondering and searching. Brilliant stuff.
Glad those links were helpful. Be sure to look at: SlackwareŽ-Links More than just Slackware links!
 
Old 05-11-2015, 06:09 PM   #9
dunnery
Member
 
Registered: May 2010
Location: East Stroudsburg
Distribution: Debian Jessie
Posts: 222

Original Poster
Rep: Reputation: 8
Slackware is another great link. Thank you.
 
  


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
LXer: stop bashing bash and GNU LXer Syndicated Linux News 0 09-30-2014 09:41 AM
[SOLVED] Bash Script - Reading User Input while Processing output from Command within Bash cleeky Linux - General 5 05-27-2014 02:57 PM
how to stop a bash script by pressing a key? Juicy Linux - Newbie 6 12-18-2013 08:41 PM
bash scripting...A command that can stop others ntelos Linux - Newbie 6 03-31-2010 05:14 PM
[SOLVED] Using a long Bash command including single quotes and pipes in a Bash script antcore Linux - General 9 07-22-2009 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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