pda4me
asked on
Linux command line
I am using the following at a Linux command line to search a series of subdirectories and unzip files.
find incp lotl resi rntl comi -name "*.zip" | while read file ; do unzip -d `dirname $file` $file ; done
This was working fine except that all of a sudden I am getting this error:
while: Expression Syntax.
can anyone suggest what may be going on?
find incp lotl resi rntl comi -name "*.zip" | while read file ; do unzip -d `dirname $file` $file ; done
This was working fine except that all of a sudden I am getting this error:
while: Expression Syntax.
can anyone suggest what may be going on?
you sure it doesnt need to be "while read $file"?
ASKER
I tried that and it gives the same error...any ideas?
which shell are you running it under?
ASKER
csh
Did you try to run it in csh/tcsh instead of sh/bash/ksh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome, that did the trick...thanks!