Lab 19



  1. Write a shell script that will take as arguments the names of two directories and prints out duplicate filenames. That is a file in each directory with the same name.
  2. [kochis@CodeRed kochis]$ ls -l Adir Bdir
    Adir:
    total 12
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:14 Afile
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:14 Bfile
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:14 Cfile
    
    Bdir:
    total 12
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:15 Afile
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:15 Cfile
    -rw-rw-r--    1 kochis   kochis        149 Jun 23 03:15 Zfile
    
  3. $ ./s19 Adir Bdir
    Afile in Adir and Bdir
    Cfile in Adir and Bdir
    

© Allan Kochis Last revision 5/31/2005