Is there a way to make the find command to stop right after finding the first match?
I'm trying to match (and later rename) directory names like:
I'm testing to see if I match any using the find command but doesn't seem to match the directories:
find . -maxdepth 1 -type d -regex '((?:[a-z][a-z]*[0-9]+[a-z0-9]*)(\s+)(\(.*\)))'
I would later want to rename it with this using the same regex:
I have the following find command:
find /home/ -type d -name "something"
what I want to achieve is to know which directory/file is checked by the find command no matter the fact that it does or does not match the name I have set.
Basically I want to see every action that the find command will perform once I launch the above piece of code.