# For each of the tasks, you have to write one or more linux commands. The the first two tasks, the commands are already given. For the lines which are not linux commands (for example, question, explanation, even this particular line), start the line with a #. The lines which are commands should not start from the very beginning of the line, without any leading #, whitespace or any other characters. The commands for the first two tasks are written already in this file. You will have to complete the rest. # Create a directory named pdslab under your home directory and then linux-assign in the server mkdir ~/pdslab mkdir ~/pdslab/linux-assign # Find the file apj.txt and place it under linux-assign cp ~pdslab/linux-assign/apj.txt ~/pdslab/linux-assign # OK - now the rest is up to you # Q1. Write a linux command to find out how many lines are there in the file apj.txt (5 marks) # Learn about the command grep using “man grep”. Then, do the following. # Q2. Write a linux command to find out how many lines are there in the file apj.txt containing the word President. (10 marks) # Q3. Please note that the file is a newspaper report, but has no heading. It would be nice if the first line is a heading, the second line is blank and then the report follows. Without using an editor (that is, using commands), put the header “Former President Dr. APJ Abdul Kalam No More” in the file. Please note that you may create intermediate temporary files, but in the end, your resultant file should be named as apj.txt, same as before. Also, if you have created any temporary files, you should delete them. Write your commands below sequentially. (15 marks) # Q4. In the end, rename your submission file (probably this file) to "linux-assign1-cs15XX.sh" and copy it to ~pdslab/2015/assign1/ [ replace XX by your roll number ] # Verify that your file has been indeed copied by reading that file. Use more ~pdslab/2015/assign1/linux-assign-cs15XX.sh [ replace XX by your roll number ] # If you have any doubts about the submission, please ask. The last date of submission is Monday, 3 August 2015, before the class at 2:15PM.