You are on page 1of 4

ISRA UNIVERSITY

Department of computer science

Operating System
Lab #09
Week # 10

Title of Practical: Shell Functions and commands(export, expr, grep etc)

 Functions
 Export command
 Expr
 Grep

Exercise1: Look for the text files in your home directory and make use of grep command with
different options with those files.

Exercise2: Write at least two functions using conditions from labtask#7 and show their outputs.
Exercise3: Create two variables that saves the results of addition and subtraction of two numbers in
exp1.sh, and export them in another script named as exp2.sh
Exercise4: create a script and show atleast 5 techniques of expression evaluation from the above
table using expr.

You might also like