View Single Post
  #2   (View Single Post)  
Old 2nd December 2022
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 465
Default

What was the awk command that you tried?

As in the last thread a search isn't needed if the sndioctl variable is specified so
Code:
sndio_value=$(sndioctl output.level | awk -F'=' '{print $2}')
But using awk in this way should be functionally equivalent to the cut command in your script so you could try that instead if you prefer.

I'm not really familiar with YAD so I can't comment on that.
Reply With Quote