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 08-18-2016, 03:13 AM   #1
mandy2112
LQ Newbie
 
Registered: Aug 2016
Posts: 1

Rep: Reputation: Disabled
Write a shell script that receives a word, an input file and an output file. The scripts copies all the lines in the input file that contain


Write a shell script that receives a word, an input file and an output file. The scripts copies all the lines in the input file that contain the word to the output file.can someone plz help me.....As i am new to shell scripting programming....
 
Old 08-18-2016, 03:49 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,638

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
LQ has rules re homework - in short, it's your homework, so you do it.

Make an effort, and we may be able to help with any problems you encounter. After you've made an effort yourself.
 
Old 08-18-2016, 08:12 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,506

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Ditto to above. At least try before you openly ask for it to be done for you.
 
Old 08-18-2016, 10:11 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,355
Blog Entries: 11

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
Show us your work so far.

http://mywiki.wooledge.org/BashGuide/InputAndOutput
 
  


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
NFS Large File Copies Fail - Error writing to file: Input/output error deck- Linux - Server 7 07-27-2013 11:14 AM
Can dd be used to create an output file larger than the input file? R00ts Linux - Software 4 08-06-2012 10:28 AM
shell script read input from file rmugunthan Linux - Newbie 9 06-18-2012 07:45 PM
Write a script which copies content of file 1 to file 2 without using cp command. aashka Linux - Newbie 5 04-10-2012 03:55 PM
using an shell script how to change a value in a file according to the user input badrinath_tcs Linux - Software 6 09-28-2009 07:29 PM


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