Useful find command -
I needed to replace about 34,000 exe files with 0-length files today after a virus corrupted them. It was difficult to use a normal bash script due to some of the files having strange characters like tildes in the filename, which bash expands. This find command came in very handy:
find is well worth knowing, if you work with any Linux/Unix variants.
-Jonesy
I needed to replace about 34,000 exe files with 0-length files today after a virus corrupted them. It was difficult to use a normal bash script due to some of the files having strange characters like tildes in the filename, which bash expands. This find command came in very handy:
find /path/to/whatever -name "*.[Ee][Xx][Ee]" -exec cp -f /dev/null {} \;
find is well worth knowing, if you work with any Linux/Unix variants.
-Jonesy


