bash

Git ignore files with one command

 

Continue reading...

grep 封装 — strfile

 

Continue reading...

echo with color

Shell脚本里加入如下定义:

 

Continue reading...

Shell 按比例缩放图片大小

一般屏幕大小是1920*1080,以下是将目录下的所有.jpg图片转换为该大小,注意是按比例缩放,并不是最终大小一定是1920*1080

 

Continue reading...

find和其他命令搭配使用

1.find和mv搭配

搜索当前文件夹下的照片并移至文件夹num/下,+号是指plus version...

Continue reading...