Trying to write a bash script to demonstrate 'awk'. I want to prompt user for a username to search the /etc/passwd file then output the line from the passwd file containing the username in order to check for duplicate entries.

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter11: Compression, System Backup, And Software Installation
Section: Chapter Questions
Problem 3DE
icon
Related questions
Question

Question 1 

Trying to write a bash script to demonstrate 'awk'. I want to prompt user for a username to search the /etc/passwd file then output the line from the passwd file containing the username in order to check for duplicate entries. 

Full explain this question and text typing work only thanks

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L