Question: Write two shell scripts: First script: Create directory In directory create 50 files with different names using for cycle. File name format: abX.txt, where X
Write two shell scripts:
- First script:
- Create directory
- In directory create 50 files with different names using for cycle. File name format: abX.txt, where X is a number from 40 to 90.
- In environment variable store file names that contain even numbers only.
- Run a second script
- Second script:
- Display the contents of the directory
- Only delete files, which names are stored in the environment variable
- Display the contents of the directory
Step by Step Solution
There are 3 Steps involved in it
First Script First script Create 50 files with differe... View full answer
Get step-by-step solutions from verified subject matter experts
