[sclug] Suppressing variable subsititution in a bash script

lug at assursys.co.uk lug at assursys.co.uk
Sat Oct 25 09:05:52 UTC 2003


On Fri, 29 Aug 2003, Tim Sutton wrote:

> I am trying to do the following in a bash script:
> 
> for PID in `ps -ef |grep "java -Djava.security.policy" |awk '{$2}'`;

Don't you mean

... | awk '{print $2}'... ?

> Tim

Alex.
-- 
Alex Butcher      Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                      Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                         <http://www.assursys.com/>



More information about the Sclug mailing list