Or you can just pass your file into the cut command.
cat $file | cut -d"(" -f2 | cut -d")" -f1
I'm not an eloquent scripter. Cut at least doesn't care where the parentheses are in the line though nor does it care how many words are bounded by the parentheses. The final...
You might want to try the xset command.
xset b 50 1000 100 would set (xset) the bell (b) to 50% amplitude, 1000 Hz for 100 milliseconds. Not guaranteed to work across all terminal types.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.