個人資料
正文

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)
評論
目前還沒有任何評論
登錄後才可評論.