ياشباب هذا سؤال عن bash shell script في فيدورا 12 ارجوا مساعدتي في حله ولكم جزيل الشكر والعرفان:ah32::
Write a bash shell script that will read the names of users provided in a file named newuserlist.txt and add these users to a Linux system. It should also generate a success report named added.rpt and an error report named failed.rpt. The format of the newuserlist.txt file is
peter nas
paul nas
cindy nas
wendy nas
………
All users are to be added to the group nas.
The format of the added.rpt file should be as follows:
user peter added.
user wendy added.
………
The format of the failed.rpt file should be as follows:
user paul exists.
user wendy exists.
………
المفضلات