Skip to content

Instantly share code, notes, and snippets.

@camark
Created January 3, 2017 02:36
Show Gist options
  • Select an option

  • Save camark/884470560615588e80f1e734e0af6944 to your computer and use it in GitHub Desktop.

Select an option

Save camark/884470560615588e80f1e734e0af6944 to your computer and use it in GitHub Desktop.
删除最晚的6个文件
ls -lt *.sql | tail -n 6 |args '{print $9}' |xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment