I am trying to rename folder that is unpacked. So I can only get file name accurately with grep (or some sort of regex expression)
via ansible, the following command fails with the error message: stderr: mv: cannot stat `/var/www/`ls /var/www/ | grep client`': No such file or directory
command mv "/var/www/`ls /var/www/ | grep client`" "/var/www/gd_new"
however, exact command works just fine when executed on server
I try to use mv "var/www/client*" "/var/www/gd_new", with xargs with pipe... all end up with similar error...
any guidance would be appreciated.