Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
批量删除特定格式的文件
ls -ltr |grep 'Screen Shot' | awk '{print "\047" $8" "$9" "$10" "$11" "$12 "\047" }' |xargs rm
ls -ltr |grep 'Screen Shot' | awk '{print "\047" $8" "$9" "$10" "$11" "$12 " "$13 "\047" }' |xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment