Skip to content

Instantly share code, notes, and snippets.

@jceresearch
Last active August 29, 2015 14:12
Show Gist options
  • Save jceresearch/061438407a53021efc0b to your computer and use it in GitHub Desktop.
Save jceresearch/061438407a53021efc0b to your computer and use it in GitHub Desktop.
Sed command to redact sh... p... file for safe extraction
sed -r 's/^([^:]+):([^:])([^:]?)([^:]?)([^:]*):(.*)$/\1:\2\3\4:\6/w shadowredacted' < shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment