LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-28-2012, 10:08 PM   #1
Friendly Neighbor
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Question 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."
 
Old 04-28-2012, 10:13 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
quick rundown... ext2-ext3-ext4

Grep tutorial


Google is your friend on these
 
Old 04-29-2012, 03:23 PM   #3
Friendly Neighbor
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thx -- never expected a reply

Quote:
Originally Posted by bret381 View Post
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!!
 
Old 04-29-2012, 04:05 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
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!
 
Old 04-29-2012, 09:17 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,309
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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.

Last edited by frankbell; 04-29-2012 at 09:18 PM.
 
  


Reply

Tags
ext2, ext3, grep


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
Newbie Interested in Mandriva Linux Unsure of Files & Install kwinana Linux - Newbie 13 01-06-2007 06:58 PM
Linux newbie interested in a new project Hunter69 Linux - Security 3 02-12-2005 01:22 PM
Total newbie interested in linux Kushan Linux - Newbie 17 08-14-2004 09:22 PM

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

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