LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-05-2017, 02:42 AM   #16
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by astrogeek View Post
And don't ignore the bash man page - a terrific resource!

Although certainly not tutorial in style, it is actually very readable, accessible and complete - a treasure among man pages!

I think a common obstacle for many is simply its length and unfamiliarity. So learn how it is organized and how to navigate quickly to major topics. Read it, one digestible section at a time to gain comfortable familiarity over time. You will be glad you did!
I'll be checking it out as well. Is that the same information that comes up when I type 'man foo'?
 
Old 01-05-2017, 02:45 AM   #17
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,236

Rep: Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452
Hm. I do not really think man pages are really useful for beginners, better to use tutorials, read examples and practice, practice and practice. Man pages are usually used to recall forgotten features, options or functionality (and from that point of view they are really usable, a thorough guide to the commands)
 
Old 01-05-2017, 02:52 AM   #18
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
Most of the tutorials I've found have been fairly superficial. But that may be because I haven't been searching for the right things. I've used the man pages quite a bit to try and figure things out. But they do tend to be rather vague, even circular in their wording. Still, I'll take any reference I can get. All it takes is to find one option that makes a bit of code work right and then I'm inspired to move forward.
 
Old 01-05-2017, 06:47 AM   #19
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,816

Rep: Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071Reputation: 3071
Variable names can start with any letter (upper or lower) or an underscore and then a mix of those plus numbers after that. So I have found in bash it is common to use the underscore as a single character
variable for throw away items. If you were to echo $_ after the read you will get whatever is stored in the position of the last underscore as each one overwrites the next until the last one.
 
Old 01-05-2017, 06:56 AM   #20
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
Now that is an awesome trick.

I've learned more in this one thread than I learned from the book I got a week ago.
 
  


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
Perl switch statement throwing error like Bad case statement (invalid case value?) kavil Programming 2 10-07-2010 04:50 AM
BASH - regex in a case statement akelder Programming 3 06-09-2010 04:02 PM
escape '*' in case statement bash junust Programming 2 01-23-2010 03:54 AM
[SOLVED] BASH --> esc key in a case statement manwithaplan Linux - Newbie 6 10-05-2009 10:33 PM
bash'ed by case statement??? 3inone Programming 2 04-29-2004 04:52 PM

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

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