#!/bin/bash
if [ "$1" == "" ] ; 
then
  ps -eo pid,cmd | less
else
  ps -eo pid,cmd | grep $1 | more
fi
