Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/wtf Use pipe ("|") as a sed command field separator an...
details: https://anonhg.NetBSD.org/src/rev/d3662e8cb442
branches: trunk
changeset: 542772:d3662e8cb442
user: salo <salo%NetBSD.org@localhost>
date: Thu Feb 06 15:17:01 2003 +0000
description:
Use pipe ("|") as a sed command field separator and allow slash ("/")
character in acronyms. (e.g. W/, B/C, ...)
Approved by jdolecek.
diffstat:
games/wtf/wtf | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r b883a313a37a -r d3662e8cb442 games/wtf/wtf
--- a/games/wtf/wtf Thu Feb 06 12:40:21 2003 +0000
+++ b/games/wtf/wtf Thu Feb 06 15:17:01 2003 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: wtf,v 1.7 2000/11/21 00:18:52 soren Exp $
+# $NetBSD: wtf,v 1.8 2003/02/06 15:17:01 salo Exp $
#
# Public domain
#
@@ -19,7 +19,7 @@
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"`
+ | sed -ne "\|^$target[[:space:]]|s|^$target[[:space:]]*||p"`
if [ "$ans" != "" ] ; then
echo "$target: $ans"
else
Home |
Main Index |
Thread Index |
Old Index