[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Awk quoting within shell scripts (was X window to foreground)



Greg Freemyer wrote:
> Brian,
> 
> Did you try awk "/$PID/ {print \$1}"
> 
> ie. A combination of double quotes to let the $PID expand and a \ to
> stop $1 from expanding?

I thought of that, but apparently I never tried doing just that. It 
works great. Thanks.

-Brian