Pattern Matching Homework - Date: 4/21/2003 Course: Unix...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Date: 4/21/2003 Course: Pattern Matching Homework A1. Why does nothing show? Because there is no file called "prog" exactly. A2. Why does A1 say "no such file", when A2 says "no match"? Because A1 is looking for a file with the name "prog" and A2 is searching for any file with the name "prog" followed by any character. A3. Why don't programs 1A and 1B show? Because the ls searched only for filenames containing the word "prog" and followed by only one character. A4 & 5. What is the difference between (4) and (5)? The first one will show any ocurrences of a filename starting with "program" and followed by anything else. The second one shows the occurrences of filenames starting with "program" followed by any characters (zero or more), but finishing with the .cpp file extension. A6. What command will make this case insensitive? ls prog1[aAbB]* B7. It looks like this is the equivalent of ls prog* , but it's not. Make up a filename that will distinguish the two.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/01/2010 for the course CS 072 taught by Professor Reneea.fecteau during the Spring '03 term at San Jose State University .

Page1 / 2

Pattern Matching Homework - Date: 4/21/2003 Course: Unix...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online