Write two shell scripts: First script: Create directory In directory create 50 files with different names using
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Posted Date: