O comando a seguir funciona bem no terminal:
$ ps axu | grep conky | awk '{ print $2 }'
4728
4770
Porém se coloco no .bashrc ele não funciona tão bem:
alias con="ps axu | grep conky | awk '{ print $2 }'"
$ con
dg 4728 2.1 0.1 91792 4344 ? S 21:15 2:18 conky -c /home/dg/.conkyrc
dg 4770 0.1 0.0 90828 3184 ? S 21:15 0:06 conky -c /home/dg/.conkyrc2
Agradeço.
--
Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
Lista de discussão Ubuntu Brasil
Histórico, descadastramento e outras opções:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br