Akagi201
7/9/2014 - 9:04 AM

bash-remove-comment.md

vim

:g/^#/d
sed "/^#/d" xx.sh

删掉行末的注释..

sed 's/#.*//'
sed '/^$/d'

vim

:g/^$/d