What scripts do you regularly use to improve your productivity?
您经常使用哪些脚本来提高工作效率?
Over the last year I have been trying to use bash scripts and commands to improve my productivity as a developer (Web and applications). Here is a list of a few simple ones that I use:
在过去的一年中,我一直在尝试使用bash脚本和命令来提高我作为开发人员(Web和应用程序)的工作效率。这是我使用的几个简单的列表:
Make files lower case:
使文件小写:
for i in *.txt; do mv "$i" "`echo $i| tr [A-Z] [a-z]`"; done
Test whether a tag exists in subversion:
测试subversion中是否存在标记:
if [ "`svn ls http://www.mysvnserver.co.uk/myproject/tags | grep it-0.7.0.1/`" = "it-0.7.0.1/" ]; then echo YES; else echo NO; fi
Rename all JPG files in the current directory and add an increment:
重命名当前目录中的所有JPG文件并添加增量:
j=16;for i in *.jpg; do mv "$i" "gallery_"$j".jpg"; j=$(($j+1)); done;ls
Fix a misspelling in a group of filenames:
修复一组文件名中的拼写错误:
for i in aples*.jpg; do mv $i ${i/aples/apples} ; done
For more see here:
更多信息请点击此处:
http://blog.emson.co.uk/2009/06/18-useful-bash-scripts-for-web-developers
What scripts do you use? Thanks...
你用什么脚本?谢谢...
1 个解决方案
#1
You have a good source of such command at CommandLineFu.
你在CommandLineFu有一个很好的命令来源。