LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Total newbie -- interested in Linux as a hobby only (http://www.linuxquestions.org/questions/linux-newbie-8/total-newbie-interested-in-linux-as-a-hobby-only-942350/)

Friendly Neighbor 04-28-2012 10:08 PM

Total newbie -- interested in Linux as a hobby only
 
I am posting because I wanted to know the difference between ext2 and ext3.

But my greatest interest is in a tutorial that will finally help me figure out how GREP works. I have tried to use it a dozen times and it just doesn't work (for me). Anyone can point me to a tutorial with examples I'd appreciate it.

I was a junior programmer 7 years ago and am just putting my toe "back in the waters."

bret381 04-28-2012 10:13 PM

quick rundown... ext2-ext3-ext4

Grep tutorial


Google is your friend on these

Friendly Neighbor 04-29-2012 03:23 PM

Thx -- never expected a reply
 
Quote:

Originally Posted by bret381 (Post 4665739)
quick rundown... ext2-ext3-ext4

Grep tutorial


Google is your friend on these

This will be my first reply to my first thread.
I'm using Puppy Linux on a USB memory stick. Don't care if it gets trashed so I'll try an ext3 to ext4 "upgrade."

What I have done with GREP is create some dummy files to search in. Never got it to work. Some (real) programmer friends of mine (you know, the engineers with degrees) said that they used it all the time. So it has been more like "magic" for me. I'll try it again.
I'll copy some old files and see what I can find. I'm a teacher and now I show kids how to do simple finds using MS Word search. If I can get GREP working I can see a LOT of us for it!!

pan64 04-29-2012 04:05 PM

grep is definitely useful and easy to use. The base syntax is:
grep "word" filename
and it will display where the given word found in the file filename.
Just open a file you have, look at it and try to grep a word inside. But first try only simple text files, not word documents!

frankbell 04-29-2012 09:17 PM

The most common way I use grep is with a pipe.

For example, if I want to make sure that the samba daemon is running, I'll execute

Code:

ps -A | grep smbd
I also like to pair it with cat:

Code:

cat /path-to/sometextfile | grep someword
And I'm just a grep beginner.


All times are GMT -5. The time now is 01:17 PM.