Skip to content

Instantly share code, notes, and snippets.

@adoc
Last active February 3, 2016 20:03
Show Gist options
  • Save adoc/8c117fb895c6dfdc962d to your computer and use it in GitHub Desktop.
Save adoc/8c117fb895c6dfdc962d to your computer and use it in GitHub Desktop.
hashdeept $@: Hashdeep and trim "##" and "%%%%" lines
#!/bin/bash
# /usr/local/sbin/hashdeept $@: Hashdeep and trim "##" and "%%%%" lines
# author: https://github.com/adoc
# link: https://gist.github.com/adoc/8c117fb895c6dfdc962d
# resources:
# http://unix.stackexchange.com/a/174720
# deps:
# hashdeep (http://md5deep.sourceforge.net/)
# todo:
# check incoming ards for -l and -j??
hashdeep -l -j 4 $@ | grep -E "^[^##][^%%%%]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment