i have the following problem:
use shell script:
Two directories have to be searched for files havin the same name.
then delete these files from one of these directories.
the directory names have to be accepted as command line arguments.
what i have done till now is:
- run a loop through both directories and
- tried to compare the filenames.
- i am not able to compare the names of files since the filenames are extracted alongwith the directory (dirname/filename)
- i tried using cut.