Paul McFerrin wrote, On 9.10.2007 8:09: > I think I'm going nuts. What am I doing wrong? Can't seem to get -exec > to work. > > /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\;\} | more > find: missing argument to `-exec' > /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\} | more > find: missing argument to `-exec' > /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo '\;' | more > find: missing argument to `-exec' > /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{;\} | more > find: missing argument to `-exec' > /i/mp3.$ find . -type f -mtime +18 -exec echo '\;' | more > find: missing argument to `-exec' Try and compare the output of command echo ';' and command echo '\;' and compare the output. You want to use ';' to terminate the -exec argument list.
> > There is NO missing argument to -exec. What gives? Is it really broken > or do I not understand the manual page correctly? > > - paul mcferrin > -- VH
signature.asc
Description: OpenPGP digital signature