[ale] searching for files....

James Sumners james.sumners at gmail.com
Wed Jun 4 16:59:59 EDT 2008


Maybe something similar to this bash script (which I think will work):

files=`ls -1A`
for f in $files; do
    [ -f $f ]
        [ -e subdir/$f ] echo "subdir/$f.data exists"
done

On Wed, Jun 4, 2008 at 3:52 PM, Jim Popovitch <yahoo at jimpop.com> wrote:
> I've a large directory of files which match the pattern [\.a-z]*, in
> the same directory is a related set of files matching [\.a-z]*\.data.
>  What I would like to do is locate all [\.a-z]* which don't have a
> corresponding .data file.    Ideas?
>
> Thx,


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59


More information about the Ale mailing list