Mercurial > repo
view bin/newcmd @ 11231:c3d85315f276
<fizzie> ` sed -e \'s|^ ||\' < \'wisdom/fun fact \' > \'wisdom/fun fact\'; rm \'wisdom/fun fact \'
author | HackBot |
---|---|
date | Wed, 01 Nov 2017 19:38:34 +0000 |
parents | b76e90844898 |
children | 73e048cb5d2f |
line wrap: on
line source
if [ -a "bin/${1%% = *}" ];then exec echo "${1%% = *}: Already exists.";fi;echo "${1#* = }" > "bin/${1%% = *}";chmod +x "bin/${1%% = *}"