Finding particular character in a line in bash
===

    Is there a way to extract a particular part from a line of text with regular expression in bash.For example, the line is;

    8495 pts/1 S 0:10 /opt/sbin/proc -q 10 -p /opt/etc/plugin/ -c /opt/etc/ -f 200000 -s 10000 -b 3276

   How can I achieve the q parameter 10 from this line?.I need the number after q parameter