Menu
  • HOME
  • TAGS

Recursively search directory of binary files for hexadecimal sequence?

shell,zsh,binaryfiles,hexdump,find-util

IF: you have GNU grep AND the hex bytes you search for NEVER contain newlines (0xa)[1] If they contain NUL (0x), you must provide the grep search string via a file (-f) rather than by direct argument. the following command would get you there, using the example of searching for...

How to change filename extensions in subdirectories on Mac OS X

osx,bash,unix,find-util

You can use the -exec argument of "find" to do this: find . -type f -name "*.mv4" -exec sh -c 'mv "$1" "${1%.mv4}.mp4"' _ {} \; Issue the "find" command from the base directory of your directory structure containing the mv4 files, or specify that directory in place of the...