ls -al
ls -al /etc &
ls -al > out
cat out
ls /tttt >& err
cat err
cat < out
cat < out > out2
cat out2
ls /tt >>& out2
">& file" redirects both stdout and stderr to file. ">>& file" append both stdout and stderr to file.
">> file" appends stdout to file.
ls -al | grep commandThe deadline of this part of the project is Wednesday, April 2, 2003 at 11:59pm.
ls -al | grep command | grep command.o
ls -al | grep command
ls -al | grep command | grep command.o > out
cat out
Follow these instructions to turnin your part two.
1. Login to CSSUN.
2. cd to lab3-src and type "make clean"
3. Type "make" to make sure that your shell is build correctly.
4. Type "make clean" again.
5. cd one directory above lab3-src
6. Create a tar file named <user_name>.tar, where <user_name> is your CSSUN login, by typing
tar -cf <user_name>.tar lab3-src
7. Gzip the tar file by typing
gzip <user_name>.tar
8. Since this timestamp will be used to verify whether the work was completed on time or not, you should set the permissions on the file you submitted to make sure that the file timestamp is not changed. So this by typing:
chmod a-w <user_name>.tar.gz
9. Mail the gzipped tar file to clay at cs dot georgetown dot edu
as an attachment.
Your grade for this project will depend on the number of tests that pass. The tests given are for part 2 and 3 of the project. Tests used for grading: test-shell-grading/ and test-shell-grading.tar.Z
See the file lab3-src/README for an explanation on how to run the tests. The tests will also give you an estimated grade. This grade is just an approximation. Other tests not given to you will be used as well during grading.