Hey everyone,
I have a small script that I want to parse through all the subdirectories within a given location and find all the files with a 'ttt' extension. However when I run the script I either get "Missing ]" or sometimes "permission denied." The files and the directories are owned by me, so I'm thinking this is a syntax problem...any help would be appreciated.
thanks
CzarJ
------------------------------------------------------
#!/usr/bin/csh
set Dir = `find $PWD -type d -print `;
while `$Dir` ;
do
cd $Dir
if
[ "`pwd`" = "${Dir}" ]
then
ls *.ttt
done
end
------------------------------------------------------
I have a small script that I want to parse through all the subdirectories within a given location and find all the files with a 'ttt' extension. However when I run the script I either get "Missing ]" or sometimes "permission denied." The files and the directories are owned by me, so I'm thinking this is a syntax problem...any help would be appreciated.
thanks
CzarJ
------------------------------------------------------
#!/usr/bin/csh
set Dir = `find $PWD -type d -print `;
while `$Dir` ;
do
cd $Dir
if
[ "`pwd`" = "${Dir}" ]
then
ls *.ttt
done
end
------------------------------------------------------