LinuxQuestions.org
Visit Jeremy's Blog.
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-05-2013, 02:33 PM   #1
phii
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Question about grep and redirection (homework).


Search the file 'data' for all of the lines that contain the pattern 'linux'
and put those lines in the file 'matches'.

Hint:
Redirect the output of a 'grep' command
 
Old 03-05-2013, 02:39 PM   #2
descendant_command
Member
 
Registered: Mar 2012
Posts: 859

Rep: Reputation: 191Reputation: 191
Your homework is not urgent to me...
 
Old 03-05-2013, 02:39 PM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,088

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
Quote:
Originally Posted by phii View Post
Search the file 'data' for all of the lines that contain the pattern 'linux'
and put those lines in the file 'matches'.

Hint:
Redirect the output of a 'grep' command
More hints:
  • This is NOT URGENT for anyone here. We volunteer our time, so don't tell/expect us to hurry and answer you.
  • This is NOT the place to come to have your homework done for you.
Show some effort of your own. Post what you've done/tried and where you're stuck, and we will HELP you, but we're not going to spoon-feed you homework answers.
 
Old 03-05-2013, 03:01 PM   #4
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
try this;
Code:
$firefox http://www.paperwritings.com/homework/write-my-homework-for-me.html &exit
 
Old 03-05-2013, 05:29 PM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

And as TB0ne said: please post what you've done/tried and where you're stuck, and we will HELP you.
 
Old 03-05-2013, 05:31 PM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.
 
Old 03-06-2013, 02:19 AM   #7
kooru
Senior Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,369
Blog Entries: 5

Rep: Reputation: 270Reputation: 270Reputation: 270
"man grep" and redirection
 
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
College Homework Help, Statistics Homework Help, Finance Homework Help, Accounting markstephen Linux - Software 1 11-14-2009 04:17 AM


All times are GMT -5. The time now is 07:20 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration