我想添加一个制表符以分隔文件的数字和字母:
71aging
1420anatomical_structure_development
206anatomical_structure_formation_involved_in_morphogenesis
19ATPase_activity
46autophagy
2634biological_process
所以现在看起来像这样:
71 aging
1420 anatomical_structure_development
206 anatomical_structure_formation_involved_in_morphogenesis
19 ATPase_activity
46 autophagy
2634 biological_process
是否有一个衬垫的sed这个?
下面是满足您要求的sed一支衬管
sed "s/^[0-9]*/&\t/g" filename
输出
71 aging
1420 anatomical_structure_development
206 anatomical_structure_formation_involved_in_morphogenesis
19 ATPase_activity
46 autophagy
2634 biological_process
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句