LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-12-2017, 07:55 PM   #1
iAM-Mr
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Rep: Reputation: Disabled
What utility do I use for...


- Write a sed script that prints the 10 country names on lines 15 to 24, with 2 names per output line, separated by a semicolon. Also print a header line with the text: Lines 15 to 24.
- Use awk to produce the same output as: cut d, f2 lab3in | tail -1
- Write a sed script that prints every 3 lines (1, 4, 7, 10) between lines 1 and 20.
-Use sed to produce the same output as: cut d, f2 lab3in | tail -1

Thank you!
 
Old 02-12-2017, 08:51 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
It's called a search engine, cas this place ain't for doing your homework for you and this smells of homework. Alternatively, manpages.

Last edited by r3sistance; 02-12-2017 at 08:52 PM.
 
1 members found this post helpful.
Old 02-12-2017, 09:13 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,870
Blog Entries: 27

Rep: Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662Reputation: 4662
We will be happy to assist with homework, if you show us what you've tried and what the results were. We just won't do it for you. See the LQ Rules, twelfth bullet item: http://www.linuxquestions.org/linux/rules.html
 
1 members found this post helpful.
Old 02-12-2017, 11:05 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Just a thin disguise might be helpful.
 
Old 02-13-2017, 12:09 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,398

Rep: Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172
What is your question?
 
Old 02-13-2017, 01:50 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,769

Rep: Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052
I am with dugan seeing as your homework questions not only tell you what they want but what utility to use ... so what is YOUR question?
 
Old 02-13-2017, 08:13 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.thegeekstuff.com/2009/10/...ile-using-sed/

Self-Serve!
 
Old 02-13-2017, 05:50 PM   #8
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Sign-up captcha: (sorry to be so blunt, but this is the above reactionS!)
IF you can understand that Ebay isNOT == CNN, can you understand that
TechForums areNOT your personal web-search slaves? Yes? OK, then:

Polite Intro:
a little info about your: 'distro'/PC, and Linux experience/interests/goals.

Thank you. Looking forward to hearing from you. Warning: LQ contains humans
(don't give-up: a couple more 'trys' and you'll 'get it'! Best wishes, 7:really!)

Last edited by Jjanel; 02-13-2017 at 06:19 PM.
 
  


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
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 03:53 AM
What's the utility??? archive Mandriva 2 03-28-2007 11:01 AM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 10:19 AM
rm utility seanatis Linux - General 1 09-05-2004 04:56 PM
very useful utility, everyone should see exodist Linux - Software 3 08-27-2003 04:29 AM

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

All times are GMT -5. The time now is 07:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration