grep을 사용하여 UUID 가져오기

grep을 사용하여 UUID 가져오기

using 출력에서 ​​어떻게 연결을 얻을 수 있습니까 uuid?eth0nmcli -p cgrep

출력 nmcli -p c:

$ nmcli -p c 
======================================================================================================================
                                                   Connection list
======================================================================================================================
NAME                      UUID                                   TYPE              TIMESTAMP-REAL                    
----------------------------------------------------------------------------------------------------------------------
Wired connection 1        <uuid>   802-3-ethernet    Mon 30 Jun 2014 01:10:38 AM IRDT  
ponyo@ponyo-pc:~$ nmcli -p c 
======================================================================================================================
                                                   Connection list
======================================================================================================================
NAME                      UUID                                   TYPE              TIMESTAMP-REAL                    
----------------------------------------------------------------------------------------------------------------------
Wired connection 1        <uuid>   802-3-ethernet

답변1

사용된 매개변수 nmcli:

nmcli -t -f uuid c

답변2

아마도:

$ nmcli -f NAME,UUID -p c | grep <your network card>

예:

$ nmcli -f NAME,UUID -p c | grep p3p1
p3p1            95345734-ff3d-4888-bc8e-77a8a57ab958 

관련 정보