我有文件,其中我想删除行末尾的空格test.txt如下(行尾有空格.
ath-miRf10005-akr
ath-miRf10018-akr
ath-miRf10019-akr
ath-miRf10020-akr
ath-miRf10023-akr
ath-miRf10024-akr
Run Code Online (Sandbox Code Playgroud)
我用过,sed 's/$\s//'但它没有用.
如何从21列和150行的大矩阵中选择值<10的那些行.
miRNameIDs degradome AGO LKM......till 21
osa-miR159a 0 42 42
osa-miR396e 0 7 9
vun-miR156a 121 77 4
ppt-miR156a 12 7 4
gma-miR6300 118 2 0
bna-miR156a 0 114 48
gma-miR156k 0 46 1
osa-miR1882e 0 7 0
.
.
.
Run Code Online (Sandbox Code Playgroud)
期望的输出是: -
miRNameIDs degradome AGO LKM......till 21
vun-miR156a 121 77 4
gma-miR6300 118 2 0
bna-miR156a 0 114 48
.
.
.
till 150 rows
Run Code Online (Sandbox Code Playgroud)