awk '/^>/{printf $0"\t";next}1' data 1. awk引入变量的用法 awk -v var=$VAR 'BEGIN{print var}' 转载于:https://www.cnblogs.com/zhangfj/p/3470027.html