Question: unix shell programming Write a program called home5. Write a program called home that takes the name of a user as its single argument and

unix shell programming


Write a program called home5. Write a program called home that takes the name of a user as its single argument and prints that user’s home directory. So home steve would print /users/ steve if /users/ steve is steve’s home directory. 


[this is what I submitted but I need to submit an executable program instead]

 

grep ^$1$ /etc/passwd | cut -d: -f6 


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create an executable program called home5 that takes a users name as an argument and prints the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!