LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2021, 02:40 AM   #1
lynux_08
LQ Newbie
 
Registered: Nov 2021
Posts: 1

Rep: Reputation: Disabled
so confused on how to create this script


Write a script that will search the /etc/group file. Display all lines
starting with the string "daemon"
 
Old 11-03-2021, 02:42 AM   #2
harun2k
LQ Newbie
 
Registered: Nov 2021
Posts: 3

Rep: Reputation: Disabled
Try Try till you succeed

Last edited by harun2k; 11-03-2021 at 02:43 AM.
 
1 members found this post helpful.
Old 11-03-2021, 02:57 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,224
Blog Entries: 1

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
Utility `grep` is your friend. Details in the manual, or try google-search for "filter lines beginning with"
 
Old 11-03-2021, 02:58 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 17,204

Rep: Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824Reputation: 5824
see LQ rules: https://www.linuxquestions.org/linux/rules.html
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
 
Old 11-03-2021, 06:58 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,037

Rep: Reputation: Disabled
This again is an exercise from the Bash Guide for Beginners:
https://tldp.org/LDP/Bash-Beginners-...ect_04_05.html
 
Old 11-03-2021, 10:07 AM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,777
Blog Entries: 23

Rep: Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785Reputation: 3785
Welcome to LQ!

As noted already, asking others to do homework is not acceptable use of the Programming forum, although most here are glad to help when you get stuck if you will show your work and the part you are having trouble with.

Please review the Site FAQ for guidance in asking well formed questions. Especially visit the link from that page, How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.

Good luck!
 
  


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
[SOLVED] Script to trigger second script--second script gets arguments of first script keif Linux - General 10 08-12-2021 02:25 AM
[SOLVED] Is it possible to create a bash script to create multiple new bash scripts Batistuta_g_2000 Linux - Newbie 6 02-19-2013 12:42 PM
Confused nay Very Confused chrystlenight SUSE / openSUSE 3 08-28-2007 06:57 PM
strange script :confused: fj8283888 Programming 3 05-30-2007 09:35 PM
How to create a Create script "easier"? lorio Linux - Newbie 6 10-10-2006 07:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 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
Open Source Consulting | Domain Registration