First release

This commit is contained in:
hjp 2000-01-11 13:24:36 +00:00
parent 66f2ef7cdf
commit 5651a7db51
8 changed files with 41 additions and 0 deletions

12
tiny/GNUmakefile Normal file
View File

@ -0,0 +1,12 @@
include GNUmakevars
install: \
$(BINDIR)/dus \
$(BINDIR)/fnp \
$(BINDIR)/fnpa \
$(BINDIR)/fnpc \
$(BINDIR)/fqdn \
$(BINDIR)/isodate \
$(BINDIR)/psg \
include GNUmakerules

2
tiny/dus Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
du -k -x $@ | sort -n | tail -100

3
tiny/fnp Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
find "$@" -printf "%TY-%Tm-%Td %TH:%TM:%TS %5k %-8u %-8g %m %p\n"

2
tiny/fnpa Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
find "$@" -printf "%AY-%Am-%Ad %AH:%AM:%AS %5k %-8u %-8g %p\n"

2
tiny/fnpc Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
find "$@" -printf "%CY-%Cm-%Cd %CH:%CM:%CS %5k %-8u %-8g %p\n"

9
tiny/fqdn Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
[ $# -ge 2 ] && { echo "Usage: $0 [hostname]" >&2; exit 1 }
if [ $# -eq 1 ]
then
hostname=$1
else
hostname="`/bin/hostname`"
fi
/usr/bin/nslookup $hostname | /bin/grep Name: | /bin/sed -e 's/.* *//'

2
tiny/isodate Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
date '+%Y-%m-%dT%H:%M:%S'

9
tiny/psg Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
case `uname` in
Linux)
ps auxww | grep "$1"
;;
HP-UX)
ps -ef | grep "$1"
;;
esac