oh-my-zsh

oh-my-zsh

1
2
3
echo $SHELL 
chsh -s /bin/zsh # 重启生效
# 主题用了 ys

macOS
sed -i 报错
mac自带的sed和linux表现不一致, 需要安装gnu-sed

macOS is a Unix, and not built on Linux. This can bite you when trying to write scripts which support both platforms.

1
brew install gnu-sed # gsed
1
2
3
4
5
6
7
8
for i in `ls`
do
t=`echo $i|awk -F '_' '{print "1i>"$1"_"$2}'`
gsed -i $t $i
echo >> $i
done

gsed -i '/^$/d' all.seq