|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Eugene Korovin 2:5080/196.72 10 Jan 2002 00:25:08 To : Vladimir Mosgalin Subject : Re: ??? Linux Registered user #xxxxxxx ?? -------------------------------------------------------------------------------- Mon, 07 Jan 2002 02:37:14 +0500, you wrote: EK>> evk$ wtf AFAIK EK>> AFAIK: as far as I know EK>> PS: man wtf VM> А где его берут? в дистрибутиве... VM> У меня bsd-games-2.9-8 - пакет из asp, ничего такого нет. у меня слакварь-8.0 (уже наполовину -current;)), bsdgames-2.11, там есть. PS: $ less /usr/games/wtf #!/bin/sh # Automatically generated from wtf/wtf.in. Do not edit. # # $NetBSD: wtf,v 1.6 1999/11/15 19:14:01 hubertf Exp $ # # Public domain # acronyms=${ACRONYMDB:-/usr/share/misc/acronyms} if [ X"$1" = X"is" ] ; then shift fi if [ $# -lt 1 ] ; then echo "Usage: $0 [is] <acronym>" fi rv=0 while [ $# -gt 0 ] ; do target=`echo $1 | tr '[a-z]' '[A-Z]'` ans=`fgrep $target < $acronyms 2>/dev/null \ | sed -ne "/^$target[[:space:]]/s/^$target[[:space:]]*//p"` if [ "$ans" != "" ] ; then echo "$target: $ans" else ans=`whatis $1 2> /dev/null | egrep "^$1[, ]" 2> /dev/null` if [ $? -eq 0 ] ; then echo "$1: $ans" else echo "Gee... I don't know what $1 means..." 1>&2 rv=1 fi fi shift done exit $rv Вот и вся игрушка:) А, да, еще ман есть: WTF(6) System Games Manual WTF(6) NAME wtf - translates acronyms for you SYNOPSIS wtf [is] acronym ... DESCRIPTION The wtf utility displays the expansion of the acronyms specified on the command line. If the acronym is unknown, wtf will check to see if the acronym is known by the whatis(1) command. If ``is'' is specified on the command line, it will be ignored, allowing the fairly natural ``wtf is WTF'' usage. ENVIRONMENT ACRONYMDB The default acronym database may be overridden by setting the environment variable ACRONYMDB to the name of a file in the proper format (acronym[tab]meaning). FILES /usr/share/misc/acronyms default acronym database. SEE ALSO whatis(1) HISTORY wtf first appeared in NetBSD 1.5. BSD July 21, 1999 BSD PPS: $wtf wtf WTF: {what,where,who,why} the fuck With best regards, Eugene [ Registered Linux user #194650 ] ...np: Audio - Track 07 --- tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.17 (i686)) * Origin: I told you - you will see the power of C++ (2:5080/196.72) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/40041cd1ef22.html, оценка из 5, голосов 10
|