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 03-02-2016, 02:42 AM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 258

Rep: Reputation: Disabled
Learning to look for information locally instead of online .....


I looked at man page for grep:

grep [OPTIONS] PATTERN [FILE...]

Then I looks for description of permissible PATTERN.
But there is not such discussion in man grep!

This seems like a recurring problem in man pages.
Where can I get information within Linux?
I am aware I can look online.
But I like to learn how to get such information locally.

Thank you.
 
Old 03-02-2016, 03:24 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,952
Blog Entries: 1

Rep: Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058Reputation: 2058
Quote:
Originally Posted by fanoflq View Post
I looked at man page for grep:

grep [OPTIONS] PATTERN [FILE...]

Then I looks for description of permissible PATTERN.
But there is not such discussion in man grep!

This seems like a recurring problem in man pages.
Where can I get information within Linux?
I am aware I can look online.
But I like to learn how to get such information locally.

Thank you.
Sure there is - look down the page for REGULAR EXPRESSONS, character classes, anchoring, repetition, concatenation, alteration, precedence, etc...

It actually has quite a bit of information on pattern matching (i.e. regular expressions), but in reality that is a much larger subject in its own right.

Admittedly it can take a little time to learn your way around the man pages, but they are surprisingly complete for the most part, although they can require a different reading style than most other things.

One quick way to scan through them is to repetitively search for a word of interest, such as "pattern", by typing /pattern <ENTER>, then /<ENTER> for next, ?<ENTER> for previous. That would lead you to regular expressions if you did not know the term.

Also, at the bottom of the man page is a SEE ALSO section which will list related man pages. In the case of grep there is a see-also for awk, sed, pcre, pcresyntax and regex, all of which have valuable information on regular expression pattern matching.

But, extra points to you for trying to find your way around - time well spent!
 
2 members found this post helpful.
Old 03-02-2016, 04:54 AM   #3
hydrurga
Senior Member
 
Registered: Nov 2008
Distribution: Linux Mint 18.1 MATE
Posts: 1,457

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Quote:
Originally Posted by fanoflq View Post
But I like to learn how to get such information locally.
That's very admirable, but we have a whole internet out there full of people who are exchanging info, examples, tutorials, problems, solutions. Why hide in a box when all that is at your fingertips?

In particular, you will be able to find a lot about commands on your Linux box, but what you don't find are a lot of are real-world examples of how to use those commands. I personally understand commands better when shown examples of their usage. Out there in the internet, these are in abundance.
 
Old 03-02-2016, 05:39 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,354

Rep: Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799Reputation: 2799
I agree with both of the above views. Learning to use your systems built-in information is invaluable and can solve many problems immediately. That being said you should not cut something out
to spite your effort, ie. the online information in concert with that gleaned from the man pages will make you very well informed on each command you attempt to perfect
 
1 members found this post helpful.
  


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: A guide to creating easy, online learning materials with Xerte LXer Syndicated Linux News 0 09-17-2014 07:30 PM
Need information about learning Linux, and programming languages chiller General 13 12-30-2012 08:02 AM
The best online College for Information Security? trox Linux - Certification 4 12-12-2012 02:04 AM
[SOLVED] mimic an online server locally with crossover ethernet cable ocpaul20 Linux - Networking 11 03-13-2012 01:17 AM
learning c++ from an online tutorial not working linksocc Programming 10 10-25-2003 04:01 AM


All times are GMT -5. The time now is 02:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration