Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using gedit to write my script and the language is bash shell Write a script the will do the following a)Take a command-line

I am using gedit to write my script and the language is bash shell

Write a script the will do the following

a)Take a command-line argument, a user's login name

b)Test to see if a command-line argument was provided

c)check to see if the user is in the /etc/passwd file

d)If the user is found the script will print "Found" "in the /etc/passwd file"

e)If not then the script will print "No such user on our system"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions