diff options
author | Puneeth Chaganti | 2011-06-10 11:53:52 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-06-10 11:53:52 +0530 |
commit | 08c87982956cc6373cd5c08254357541a848d588 (patch) | |
tree | daba705f5a279a0a4af07058b7f741f535aa4cbe /ult | |
parent | e454d48edb309c3179842233cb83154d593dc8ca (diff) | |
download | sees-08c87982956cc6373cd5c08254357541a848d588.tar.gz sees-08c87982956cc6373cd5c08254357541a848d588.tar.bz2 sees-08c87982956cc6373cd5c08254357541a848d588.zip |
Fixed indentation for numbering.
Diffstat (limited to 'ult')
-rw-r--r-- | ult/exercises.rst | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ult/exercises.rst b/ult/exercises.rst index e130a0c..bce7d56 100644 --- a/ult/exercises.rst +++ b/ult/exercises.rst @@ -10,37 +10,37 @@ Session-1 #. List all the files present in your current working directory. #. Navigate to the ``Desktop`` directory. If such a directory is not - present create one. + present create one. #. Navigate back to the ``home`` directory. #. Create a directory called ``ult`` inside another directory called - ``sees``. Create both the directories in a single command. + ``sees``. Create both the directories in a single command. #. What would be your present working directory after doing the - following? + following? :: cd ~/sees/./../ #. Use the touch command to create a file with your name in the - ``ult`` folder. + ``ult`` folder. #. Remove the file you created in the previous step. #. Navigate to your home directory and remove the directory - ``sees``. Use ``rm`` command. + ``sees``. Use ``rm`` command. #. Re-create the directories ``sees`` and ``ult`` again. Now, remove - them using the ``rmdir`` command. Use ``man`` or ``--help``, if - required. + them using the ``rmdir`` command. Use ``man`` or ``--help``, if + required. #. Create a file with your first-name in your home directory and copy - it to ``sees/ult``. + it to ``sees/ult``. #. Copy the file again, but this time, ensure that ``cp`` checks if - such a file doesn't already exist. + such a file doesn't already exist. #. Copy the directory ``sees` to the directory ``sttp``. @@ -57,13 +57,13 @@ Session-1 #. Count the number of files in a directory. #. Create a new file ``alice.txt`` by concatenating the first 30 lines - and the last 40 lines of ``wonderland.txt``. + and the last 40 lines of ``wonderland.txt``. #. Show the lines from 10 to 20 of ``primes.txt`` #. Concatenate the content of ``foo.txt`` and ``bar.txt`` in a single - ``foobar.txt`` but with the ``source:wikipedia`` line appearing only - once, at the end of the file. + ``foobar.txt`` but with the ``source:wikipedia`` line appearing only + once, at the end of the file. Session-2 ========= @@ -71,34 +71,34 @@ Session-2 0. Read through the section ``REGULAR EXPRESSIONS`` in ``man grep`` 1. grep the marks of the students who scored above 75 in atleast one -subject. + subject. #. grep the marks of all the students whose names begin with an 's' #. grep the marks of all the students whose names begin with -consonants. + consonants. #. change the results.sh script to accept the input files also as -arguments. + arguments. #. Write a shell script that will take a filename as input and check -if it is executable. + if it is executable. #. Modify the script in the previous step, to remove the execute -permissions, if the file is executable. + permissions, if the file is executable. #. Write a shell script to remove all executable files from a - directory, when a directory is given as argument. + directory, when a directory is given as argument. #. List all the years between 2001 and 2099 which have 5 Fridays, - Saturdays and Sundays in the month of July. Hint: ``man cal`` + Saturdays and Sundays in the month of July. Hint: ``man cal`` #. Generate frequency list of all the commands you have used, and show - the top 5 commands along with their count. (Hint: ``history`` command - will give you a list of all commands used.) + the top 5 commands along with their count. (Hint: ``history`` command + will give you a list of all commands used.) #. generate a word frequency list for ``wonderland.txt``. Hint: use -``grep``, ``tr``, ``sort``, ``uniq`` (or anything else that you want) + ``grep``, ``tr``, ``sort``, ``uniq`` (or anything else that you want) #. **Print the middle line of a file**. |