baffeled with find command failure
Rajeev Prasad
rp.neuli at yahoo.com
Sun Sep 14 14:02:09 UTC 2014
in the bash script:
this fails:
fileloc='/var/adm/logs/morelogs'
filename=' -name "*.user"'
fileList="$(find "$fileloc"/* -type f -prune "$filename" -print)"
find: bad option -name "*.user"
find: [-H | -L] path-list predicate-list
but this works:
find /var/adm/logs/morelogs/* -type f -prune -name "*.user" -print
GNU bash, version 3.00.16(1)-release-(sparc-sun-solaris2.10)
More information about the ubuntu-users
mailing list