How to cut part of grepped value

Viewed 270

I am running this command in a shell script:

user@nas:~$ lsblk -o NAME,PARTUUID | grep 9bf22f69-05
└─sdi1             9bf22f69-05                                                                        9bf22f69-05

How do I use cut in the command to only give me the first part (sdi)?

1 Answers
Related