Re: How to compare the files in two directories with a script?
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 04/30/05
- Next message: Michael Heiming: "Re: How to compare the files in two directories with a script?"
- Previous message: matt_left_coast: "Re: How to compare the files in two directories with a script?"
- In reply to: matt_left_coast: "Re: How to compare the files in two directories with a script?"
- Next in thread: Ed Morton: "Re: How to compare the files in two directories with a script?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Apr 2005 08:44:41 GMT
On comp.unix.shell, in <ioudnTC4LuVDpO7fRVn-pg@rcn.net>, "matt_left_coast" wrote:
>
>
> Ed Morton wrote:
>
<snip>
>>> for var1 in $dir1 # runs though each file in first
>>> directory do
>>> for var2 in $dir2 # runs though each file in the second
>>> do # directory for each file in $dir1
>>> $cmd var1 var2
>>> done
>>> done
>>
>> Besides missing "$"s in the var references, that will fail for files
>> with spaces in their names (see question 16 in the FAQ,
>> http://home.comcast.net/~j.p.h/cus-faq.html#P). You can do the
>> equivalent with:
>>
>> for var1 in "$1"/*
>> do
>> for var2 in "$2"/*
>> do
>> tkdiff.tcl var1 var2
>
>
> "Besides missing "$"s in the var references".
<snicker>
AC
- Next message: Michael Heiming: "Re: How to compare the files in two directories with a script?"
- Previous message: matt_left_coast: "Re: How to compare the files in two directories with a script?"
- In reply to: matt_left_coast: "Re: How to compare the files in two directories with a script?"
- Next in thread: Ed Morton: "Re: How to compare the files in two directories with a script?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]