The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX newbie NEWBIE question! Hanamachi UNIX for Dummies Questions & Answers 4 03-28-2009 04:10 PM
Can u help a newbie? bLinQue UNIX for Dummies Questions & Answers 2 07-16-2004 01:27 PM
help<newbie> skistar High Level Programming 9 01-18-2002 06:12 PM
help<newbie> skistar IP Networking 1 01-03-2002 12:00 AM
NEWBIE << help >> LolapaloL High Level Programming 1 11-13-2001 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-25-2002
goodman goodman is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 1
newbie needs help

hi i need some help on command grep and pipe

but the man grep and man pipe doesn't help me much

is there any site show more detail help on all the unix command??
  #2 (permalink)  
Old 01-25-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
There is a very useful tool on this website. Use the "search" tab on the homepage.

You can type in "grep" and "pipe". You might also try searching for "awk", "find", or "script".

These should help you find out about grep and pipe.

here are some examples of mine.

You can use grep to extract data from a file a few ways.

cat /path/to/filename |grep word

A more effiecient way is:

grep word /path/to/filename

You can use pipe to send the output of a command into another command. as such.

finger | grep userID > filename
or
cat /etc/passwd |awk -F: '{ print $1, $6 }' > /some/filename
This last one will take the output of cat and give it to awk to process and take out the 1st and 6th fields of the /etc/passwd file and then send it to a file.

If you would like to learn more about this, get a book on Sed and Awk. Also the Unix in a Nutshell book both by O'Reilly.

Go to the FAQ on this site's home page to see more good books.

Have Fun!!!




Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0