Some Plan 9 workalikes.
This commit is contained in:
parent
771ff2bc05
commit
629864f582
4 changed files with 107 additions and 0 deletions
23
bin/psu
Executable file
23
bin/psu
Executable 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 "
|
||||
Loading…
Add table
Add a link
Reference in a new issue