Re: Most Difficult Question EVER!!



On Mar 28, 2:21 pm, "Chris F.A. Johnson" <cfajohn...@xxxxxxxxx> wrote:
On 2007-03-28, Will wrote:
On Mar 28, 1:53 pm, "Chris F.A. Johnson" <cfajohn...@xxxxxxxxx> wrote:
On 2007-03-28, Will wrote:

I tried this: It returns nothing
---------------------------------------------------------------------------­---------
NonEmptyFiles=$( find *.phy -type f -size +0 )
for EachFile in $NomEmptyFiles
do
echo "test"
done
---------------------------------------------------------------------------­----------

find *.phy -type f -size +0 does return what i am looking for

Fix the typo in the variable name in the for line.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell/>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence

got it working
thanks

.



Relevant Pages