随手记

find 命令

find -type f |xargs ls -l

find ./xc/ -type f -name *.png |xargs cp {} ./png/

find ./ -type f -mtime +300 -exec rm {} ;

iptables 命令

iptables -R INPUT 2 -s 183.11.33.91

sed 命令 mac下报错 增加 ""

sed -i "" 's#$#&,#g' id.txt //命令用途文件末尾添加 , (逗号)

sql

add_months(DEADLINE, 3) // 增加3个月,DEADLINE 日期字段名

原文地址:https://www.cnblogs.com/sweet22353/p/14331319.html