grep output into array

后端 未结 5 1319
清酒与你
清酒与你 2021-02-05 23:29

Guys How can I make this work

`find /xyz/abc/music/ |grep def`

I don\'t want to store the array in any temporary variable. How can w

5条回答
  •  有刺的猬
    2021-02-06 00:15

    Do you mean to get the first line of the output?

    find /xyz/abc/music/ |grep def|head 1
    

提交回复
热议问题