Question: Write a shell script that gets 6 arguments. The first 3 parameters are the names of 3 files and the second 3 arguments are the

Write a shell script that gets 6 arguments. The first 3 parameters are the names of 3 files and the second 3 arguments are the permissions for them. The script should create the files and set their permissions. Example: If we run the script like this: ./script.sh file1 file2 file3 777 644 755 The script should create file1 with permissions 777, file2 with permissions 644 and file3 with permissions 755.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!