hi, i had a few unix questions that I am not sure about the answers. if anybody can give a try... that would be great.
1. In sed, when you do pattern matching, the largest pattern is always matched first, left to right. True or False
2. The command tr 'a-z' 'A-Z' | tr 'A-Z' 'a-z'
after the command is run, case of the input stream will be swapped. True or False
# i tried, the output is a bit weird....
3. File substitution always happens on variable assignment. True or False
4. In the command
echo "hello world" >&2 2>outfile
both standard output and standard error are sent to outfile True or False
5. Which statement best describes when filename generation (expansion) can occur?
a. inside of single quote
b. ......... double quote
c. ........... backquote
d. B & C
e. A and B and C
6. The command
rm "-foobar"
will correctly delete a file named, -foobar
True or False
7. The program 'ls' is a UNIX filter
True or False