Skip to content

Instantly share code, notes, and snippets.

@rankun203
Last active December 31, 2015 14:09
Show Gist options
  • Save rankun203/7998676 to your computer and use it in GitHub Desktop.
Save rankun203/7998676 to your computer and use it in GitHub Desktop.
一些常用的bash命令
#统计文件数目
ls -l |grep "^-" | wc -l
#批量改名
for files in `ls *`
do
mv $files `echo "xxx_$i.jpg"`
let "i++"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment