LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 07: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 07:52 PM.
 
1 members found this post helpful.
Old 02-12-2017, 08: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: 19,530
Blog Entries: 28

Rep: Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201Reputation: 6201
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, 10:05 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Just a thin disguise might be helpful.
 
Old 02-12-2017, 11:09 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,307

Rep: Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371Reputation: 5371
What is your question?
 
Old 02-13-2017, 12:50 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Arch
Posts: 10,017

Rep: Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196
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, 07:13 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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

Self-Serve!
 
Old 02-13-2017, 04: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: 364Reputation: 364Reputation: 364Reputation: 364
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 05: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 02:53 AM
What's the utility??? archive Mandriva 2 03-28-2007 10:01 AM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 09:19 AM
rm utility seanatis Linux - General 1 09-05-2004 03:56 PM
very useful utility, everyone should see exodist Linux - Software 3 08-27-2003 03:29 AM

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

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