method
来自「麻省理工学院的人工智能工具箱,很珍贵,希望对大家有用!」· 代码 · 共 20 行
TXT
20 行
#!/bin/sh# this script greps all the lines that start with '* ' from the input # file; Results are redirected to file strip_comments.outif [ $# -eq 0 ]; then echo "Usage= `basename $0` Filename" exit;fifor fn in $*do fout=`basename $fn`.out rm $fout 2>&- echo "++++ FILENAME: $fn " >> $fout egrep -e '^\*[^/]' $fn |cut -c2- >> $fout #egrep -e '^\* |^\* ' $fn |cut -c2- >> $fout echo "++++ end of $fn " >> $fout echo " " >> $foutdone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?