I al revés, doncs? #!/bin/bash programes="llistar.txt" for i in `cat $programes`; do if ps xo 'comm' | grep -q $i ; then echo "$i existeix"; fi done