Home Work #2 Write ONE shell script to do following:
- create a directory. Enter a directory. Create an empty file named blank.
- Then write the content "Hello" five times to the file greetings.txt. Then copy the file greetings.txt and paste its contents into 1.txt, 2.txt, 3.txt, 4.txt and 5.txt.
- Then write the text "cat" to pets.txt Then append the text "dog" to pets.txt Then append the text "hamster" to pets.txt
- Then write the text "cat" to commands.txt Then append the text "ls" to commands.txt Then append the text "pwd" to commands.txt
- Then find unique strings from these two files pets.txt and commands.txt and store the unique strings in lovelyCommands.txt