Hi everyone,
I would like to know exactly what does
at the end of the example that I saw online
example 1
So If I get it well
Find will look in /var/log for files named *.log then will execute ls -l on each result ( {} = the output list ? )
I've try without \; at the end and I get Find: missing argument to -exec why ?
why we need to escape and and ; ?
Thanks
I would like to know exactly what does
Bash:
\;
at the end of the example that I saw online
example 1
Bash:
find /var/log -name *.log -exec ls -l {} \;
So If I get it well
Find will look in /var/log for files named *.log then will execute ls -l on each result ( {} = the output list ? )
I've try without \; at the end and I get Find: missing argument to -exec why ?
why we need to escape and and ; ?
Thanks