LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What utility do I use for... (https://www.linuxquestions.org/questions/linux-newbie-8/what-utility-do-i-use-for-4175599608/)

iAM-Mr 02-12-2017 06:55 PM

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!

r3sistance 02-12-2017 07:51 PM

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

frankbell 02-12-2017 08:13 PM

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

AwesomeMachine 02-12-2017 10:05 PM

Just a thin disguise might be helpful.

dugan 02-12-2017 11:09 PM

What is your question?

grail 02-13-2017 12:50 AM

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?

Habitual 02-13-2017 07:13 AM

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

Self-Serve!

Jjanel 02-13-2017 04:50 PM

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!)


All times are GMT -5. The time now is 08:04 PM.