- Few questions:-
CSC2408—Software Development Tools11
Assignment 1
Weight
15%
Due Date
See course specification
1. It is compulsory to use either vi or emacs to edit the assignment
file, in which the answer to all questions must be included.
2. The file must be compressed by either use tar or zip before
submission.
Question 1. (10 marks)
Assume that a file’s permissions give you read and write access.
What is the difference between
ls -l
and
ls -ld
?
If a directory has “r” only access, can you change into the directory?
If a directory has “x” only access, can you list the content of that
directory?
What operations can you perform on the file if it is in a directory
which has “r” (read) only access?
What operations can you perform on the file if it is in a directory
which has “x” (execute) only access?
Question 2. (10 marks)
Answer the following questions about regular expression, give an example if
necessary.
what is the difference between
ab.cd
and
ab*cd
?
what is the difference between
ab.*cd
and
abb*cd
?
what is the difference between
^abc
and
^abc$
?
what is the difference between
[abc]d
and
[^abc]d
?
What is the difference between
[A-Z][_a-zA-Z0-9]*
and
[A-Z_][a-zA-Z0-9]*
?
(Note the regular expression “x*$” could be described as a line has “zero or
more x at the end of the line”.)