Some Plan 9 workalikes.

This commit is contained in:
rsc 2003-10-13 18:25:28 +00:00
parent 771ff2bc05
commit 629864f582
4 changed files with 107 additions and 0 deletions

23
bin/psu Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
flag=''
if [ "x$1" = "x-a" ]
then
flag=-a
shift
fi
user=`whoami`
case $# in
0)
user=`whoami`
;;
1)
user=$1
;;
*)
echo 'usage: psu [-a] [user]' 1>&2
exit 1
esac
ps $flag | grep "^$user "