Skip to content

Instantly share code, notes, and snippets.

@PoisonousJohn
Created February 7, 2017 15:08
Show Gist options
  • Save PoisonousJohn/022979022edf65ff332c40577f7f3c86 to your computer and use it in GitHub Desktop.
Save PoisonousJohn/022979022edf65ff332c40577f7f3c86 to your computer and use it in GitHub Desktop.
Update modified timestamp of files by extension in bash
#!/bin/sh
for file in `find . -name "*.$1"`; do echo >> $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment