[gilug.org] programacio bash

Quim Rovira quim rovira gmail com
2007-06-18 18:51:21 UTC


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



More information about the gilug mailing list