Skip to content

Instantly share code, notes, and snippets.

@kbsali
Created September 3, 2021 13:55
Show Gist options
  • Save kbsali/b5dd6f12ca55ec269e7de3645aff341e to your computer and use it in GitHub Desktop.
Save kbsali/b5dd6f12ca55ec269e7de3645aff341e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for a in $(find src/ -type f);do expand -t2 $a > tmp && cp tmp $a;done
for a in $(grep -P "\t" .* -l);do expand -t2 $a > tmp && cp tmp $a;done
for a in $(grep -P "\t" * -l --exclude-dir={node_modules,src,static});do expand -t2 $a > tmp && cp tmp $a;done
rm tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment