¡Esta es una revisión vieja del documento!
- rex.sh
#!/bin/ksh # rex is a tiny browser for nex # usage: rex [host] [selector] # example: rex nex.nightfall.city # rex nex.nightfall.city users/m15o/ # credit: nex://nex.nightfall.city/users/alexlehm/ if [[ ${#} -lt 1 ]] then echo "Usage: $0 rex [host] [selector]" exit 1 fi host="$1" echo $host echo "$2" | nc "$1" 1900 | less send() { msg="$1" echo $host echo $msg | nc $host 1900 | less } while true do echo -n "nex:" read input if [[ $input == "bye" ]] then exit 0 fi send $input done
