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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-12-2017, 06:55 PM
|
#1
|
LQ Newbie
Registered: Feb 2017
Posts: 2
Rep: 
|
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!
|
|
|
02-12-2017, 07:51 PM
|
#2
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
02-12-2017, 08:13 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,983
|
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.
|
02-12-2017, 10:05 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Just a thin disguise might be helpful.
|
|
|
02-12-2017, 11:09 PM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,372
|
What is your question?
|
|
|
02-13-2017, 12:50 AM
|
#6
|
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Arch
Posts: 10,038
|
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?
|
|
|
02-13-2017, 07:13 AM
|
#7
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
|
|
|
02-13-2017, 04:50 PM
|
#8
|
Member
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
|
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.
|
|
|
All times are GMT -5. The time now is 12:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|