I have a text line as:
host_id -------------------------------------- f5f4d3e7-fdc4-49f2-b32c-13280bc7db66 (1 rows)
And I want to extract only the UUID value within the text using shell script as I need to run this on ubuntu to execute some other commands using the value. I tried using cut command:
cut -d '-' -f2 | cut -d '(' -f1
But couldn't succeed to specify the cut character for before and after of the UUID string.