Create a script, to be named fql, which should:
1. Display Enter the name of the main file
2. Accept the main file
3. Display Enter the name of the temporary file
4. Accept the temporary file
5. Display Enter choice [0: quit, 1: insert, 2: delete, 3: update, 4: select]
6. Accept the choice
7. while the choice different than zero
a. case choice is 1
i. Display Enter the student name as [FirstName.MiddleName.LastName]
ii. Accept the student name
iii. Convert the student name to uppercase
iv. Convert the student name dots to spaces
v. Append the student name to the main file
vi. Make the need sorting to yes
b. case choice is 2
i. Display Enter the string pattern to delete
ii. Accept the pattern
iii. Delete all rows of the main file containing the pattern (use the temporary file)
c. case choice is 3
i. Display Enter the old string pattern
ii. Accept the old pattern
iii. Display Enter the new string pattern
iv. Accept the new pattern
v. Substitute in all rows of the main file containing the old pattern with the new one (use the temporary file)
vi. Make the need sorting to yes
d. case choice is 4
i. Display Enter the number of columns to retrieve separated by commas [use * for all columns]
ii. Accept the column option
iii. Display Enter the string pattern to retrieve
iv. Accept the pattern
v. If the need sorting is yes, sort the main file according to the 3rd column and make need sorting no
vi. Display the rows of the main file than match the pattern and the specified columns [use an if statement to keep track if the user entered a * as his option]
e. Repeat 5, 6
8. If the need sorting is yes, sort the main file according to the 3rd column
9. Display Number of executed commands: the number of commands
10. Display Number of students: the number of students
11. Display the contents of the main file with a numbered prefix
12. Delete the temporary file