Skip to content

Instantly share code, notes, and snippets.

@MaximeD
Created March 13, 2017 13:25
Show Gist options
  • Save MaximeD/af8e613ff398cb41b130bb068c784e12 to your computer and use it in GitHub Desktop.
Save MaximeD/af8e613ff398cb41b130bb068c784e12 to your computer and use it in GitHub Desktop.
description
[[snippets]]
description = "Replace tab with spaces"
command = "find . -name $1 ! -type d -exec bash -c 'expand -i -t 2 \"$0\" > /tmp/e && mv /tmp/e \"$0\"' {} \\;"
[[snippets]]
description = "Empty log files"
command = "find . -iname \"*.log\" | xargs truncate --size 0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment