#!/bin/bash if [ "$1" = "" ] then ps -flwHe | grep -v " $$ " else ps -flw -u 789 | head -1 ps -flwHe | grep "$1" | grep -v " $$ " fi