亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

cut 問題

[panshuai@localhost Documents]$ cat a.txt?

id name gender mark

1 aa f 80

2 bb f 81

3 cc f 82

4 dd f 83


id:name:gender:mark

5:ee:t:11

6:ff:t:12

7:gg:t:13

8:hh:t:14

[panshuai@localhost Documents]$ cut -f 3 a.txt?

gender

f

f

f

f


id:name:gender:mark

5:ee:t:11

6:ff:t:12

7:gg:t:13

8:hh:t:14

[panshuai@localhost Documents]$ cut -f 3 -d ":" a.txt?

id name gender mark

1 aa f 80

2 bb f 81

3 cc f 82

4 dd f 83


gender

t

t

t

t

[panshuai@localhost Documents]$?

為什么會出現這個情況?會多出那些不需要的行

正在回答

2 回答

用tab鍵來分割不同列

0 回復 有任何疑惑可以回復我~

好吧,是把所有的東西看成第一列了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號