Skip to content

Instantly share code, notes, and snippets.

@SammyLin
Forked from kogakure/gist:79851
Created January 8, 2015 02:24
Show Gist options
  • Save SammyLin/5c17bdabc42e1f079cae to your computer and use it in GitHub Desktop.
Save SammyLin/5c17bdabc42e1f079cae to your computer and use it in GitHub Desktop.
刪除 Frontpage, WSFTP 等等產生的檔案 Bash: Get rid of those nasty files from Frontpage, WSFTP, etc.
#!/bin/bash
find . -name _vti_cnf -exec rm -rf {} \;
find . -name _borders -exec rm -rf {} \;
find . -name _private -exec rm -rf {} \;
find . -name _vti_pvt -exec rm -rf {} \;
find . -name _vti_txt -exec rm -rf {} \;
find . -name _vti_script -exec rm -rf {} \;
find . -name .DS_Store -exec rm -rf {} \;
find . -name WS_FTP.LOG -exec rm -rf {} \;
find . -name desktop.ini -exec rm -rf {} \;
find . -name Thumbs.db -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment