On Thu, May 21, 2009 at 08:34:48PM +0200, Michael Casey wrote: > yeah, SOLVED: :)) > > clear; find . -type d | while read FOLDERNAME; do $(cd "$FOLDERNAME"); done
I'm not sure what it is exactly that you try to do, but: $(cd "$FOLDERNAME") chdir-s into that directory in a subshell and then returns the output of that command (which is always empty) as the command to execute. That command is empty which is a syntax error in the while loop. -- Tzafrir Cohen | [email protected] | VIM is http://tzafrir.org.il | | a Mutt's [email protected] | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

