个人资料
正文

Pissed off by some commands.

(2015-08-12 13:05:49) 下一个

Some of the unix commands are not
scripting-friendly. Take "stat -c %s filename" or
"md5sum filename." Why do these commands have to
print out the <filename> in addition to the size
and the md5 checksum of the file, respectively,
and give no option to muffle it?  I know some unix
tools are especially handy and some shells offer
ways to manipulate strings. But those shouldn't be
the reason to skip the option. In addition to
performance cost, they become ugly under excessive
use and do not help the reader or the writer
trying to improve readability. 10 years ago, I'd
love to show off my "skills" but now I just felt
disgusted at the lack of consideration.

 

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.