hello everyone!
I have an exercise which I think is difficult for beginner like me. Here is the exercise
Create a shell script, which takes a directory as command line argument.
Script displays ten first lines from every text file in that directory. After
displaying the lines from the file the script asks: �Do you want to remove this file?�
The answer yes or y or Yes or Y means that the script removes the file (use here case - statement).
If the file is not a normal text file, the script doesn't display it.
The script asks only �Do you want to remove this file?� Yes means remove.
Could you please tell me how to sort it out?
Thank you very very much!