mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
copy in from cvs; cvs2svn fucked up big time
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: wtf,v 1.5 1999/08/13 03:02:06 sommerfeld Exp $
|
||||
# $NetBSD: wtf,v 1.8 2003/02/06 15:17:01 salo Exp $
|
||||
#
|
||||
# Public domain
|
||||
#
|
||||
@@ -12,14 +12,14 @@ if [ X"$1" = X"is" ] ; then
|
||||
fi
|
||||
|
||||
if [ $# -lt 1 ] ; then
|
||||
echo "Usage: $0 [is] <acronym>"
|
||||
echo "Usage: `basename $0` [is] <acronym>"
|
||||
fi
|
||||
|
||||
rv=0
|
||||
while [ $# -gt 0 ] ; do
|
||||
target=`echo $1 | tr '[a-z]' '[A-Z]'`
|
||||
ans=`sed -ne "/^$target[[:space:]]/s/^$target[[:space:]]*//p" \
|
||||
< $acronyms 2>/dev/null`
|
||||
ans=`fgrep $target < $acronyms 2>/dev/null \
|
||||
| sed -ne "\|^$target[[:space:]]|s|^$target[[:space:]]*||p"`
|
||||
if [ "$ans" != "" ] ; then
|
||||
echo "$target: $ans"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user