1- Create a script in Desktop directory that does the following: s. Input the value of user that you want to search in /
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1- Create a script in Desktop directory that does the following: s. Input the value of user that you want to search in /
statement for displaying: "What is the name of the user that you are looking for? "[1 Marks] b. Print the output of the searching, Using grap command [1 Marks] Create a new file name file_<<NAME>>, replace <<NAME>> with the one that you get it from read command. [1 Marks] d. Save the /etc/passwd in your home directory in file name output.log, using cat command [1 Marks] e. Save the output of tres command for your home directory in file name log.txt [1 Marks] IMPORTANT NOTICE: YOU MUST PROVIDE THE SCREEN SHOT TO THE SCRIPT CODE, EXECUTE, OUTPUT.LOG, AND LOG.TXT
1- Create a script in Desktop directory that does the following: s. Input the value of user that you want to search in /etc/passwd. Using read command and put this