Skip to content

Instantly share code, notes, and snippets.

@circa10a
Created December 17, 2017 23:00
Show Gist options
  • Save circa10a/943f5dadf690673cd693ec2ce4d028f1 to your computer and use it in GitHub Desktop.
Save circa10a/943f5dadf690673cd693ec2ce4d028f1 to your computer and use it in GitHub Desktop.
find command to backup all files of a given file type
#!/bin/bash
find . -name '*.sh' -maxdepth 1 -type f -exec cp {} ./backups/ \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment