remove_old_programs.bash 165 Bytes
Newer Older
Rohit Gupta's avatar
Rohit Gupta committed
1
2
3
4
5
6
7
#!/bin/bash

#$1 programs to be killed and checked
var=`ps -A |grep -E -i $1`
echo $var
if [ -n "$var" ]; then echo 'Match found'; else echo 'Match not found' ;fi