X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fusers%2Ffind_user.sh;fp=scripts%2Fusers%2Ffind_user.sh;h=0000000000000000000000000000000000000000;hb=b549c5ccea6b282f40add4dcefe1ef1a6865cbe6;hp=66358cf7dbe855f0f80901ce0320bccdb5e41f23;hpb=757317fa749bd47b958d43c3227f747d4ddc5add;p=feisty_meow.git diff --git a/scripts/users/find_user.sh b/scripts/users/find_user.sh deleted file mode 100644 index 66358cf7..00000000 --- a/scripts/users/find_user.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -if test $# -lt 1; then - echo $(basename $0): requires a user id for which to search.; - \exit 1; -fi -tempname="$(mktemp "$TMP/zz_trash.findme.XXXXXX")" -ps wuax | grep "$1[ ]*[0-9]" | sed -e ' - /sed/d - /\/bin\/sh.*\/scripts\/find/d - /ps -uxg/d' >$tempname -# sed command eliminates field ambiguity for STAT field -cat $tempname| sed -e '/[RSD] N/s/[RSD] N/NUN/' | -awk '/^'$1'/ { - ORS="" - print "process #" $2, "started", $9 " " - if ($9 ~ /^[A-Za-z]/) { - print $10, "with " - } else { - print "with", $11 " " - } - print $12, $13, $14, $15, $16, $17 "\n" - } -' | sort -k 1 -t\# -n -/bin/rm $tempname