男单 618

生活象筒装的卫生纸,开始的时候怎么扯都不觉得在转,后来转的越来越快。

Archive for the ‘Ubuntu’ tag

Ubuntu下使用md5sum计算字符串的MD5值

without comments

echo -n string|md5sum

注:之前只会用md5sum计算文件的MD5值,想计算个字符串的MD5值,试了很多办法都不行,今天无意中看到。看来对Linux的软件哲学理解的还是不到位。

Written by amao

十一月 17th, 2009 at 11:22 下午

Posted in linux, 软件

Tagged with ,

Ubuntu下批量重命名

with one comment

以下命令将当前目录下所有文件文件名中的前缀“sm-”删除,也即原sm-ABC.jpg,改为ABC.jpg:
for i in *; do mv $i `echo $i | sed -e ’s/sm-//’`; done

btw:原来一直认为Ubuntu下的几个仿TotalCommander的软件都有这样那样的缺陷,现在才知道原来Linux不需要TotalCommander,默认的小工具非常好用,只有Win这种平台才需要TC。

Written by amao

十一月 1st, 2009 at 8:22 下午

Posted in linux

Tagged with