I search for two files that has changed recently in a folder, but it seems I invoke find
incorrectly. In return I get only the results for the second file.
find /tmp -name 'twofirmscoop.so' -o -name 'twofirms.so' -exec ls -lt {} + 2>/dev/null
I search for two files that has changed recently in a folder, but it seems I invoke find
incorrectly. In return I get only the results for the second file.
find /tmp -name 'twofirmscoop.so' -o -name 'twofirms.so' -exec ls -lt {} + 2>/dev/null
The -exec
argument only applies to the second match. To group them, do:
find /tmp \( -name 'twofirmscoop.so' -o -name 'twofirms.so' \) -exec ls -lt {} +
Try this:
find /tmp \( -name 'twofirmscoop.so' -o -name 'twofirms.so' \) -exec ls -lt {} + 2>/dev/null