I want the following assigned to a bash variable.
find . -name "*.zip" -exec echo {} ;
The below will throw warnings and errors, especially with the *(star). Seems ok without the name argument.
#!/usr/bin/bash
cmd="find . -name \"*.zip\" -exec echo {} ;"
$cmd
find: paths must precede expression: echo
I think it is the find command itself that is off?