K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / doc / w3m / examples / Bonus /
server ip : 172.67.156.115

your ip : 172.69.7.138

H O M E


Filename/usr/share/doc/w3m/examples/Bonus/wrap3m
Size450
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified04-Jan-2014 19:15
Last accessed07-Jul-2025 19:06
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

HOMEPAGE=http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/
OPT=""
URL=""
for i in $@
do
case $i in
-*)
OPT="$OPT $i"
;;
*)
URL="$URL $i"
;;
esac
done

if [ -z "$URL" ]; then
URL=$HOMEPAGE
fi
URLARG=""
for u in $URL
do
if [ `expr $u : '[a-z][a-z]*://'` -gt 0 ]; then
URLARG="$URLARG $u"
elif [ -f $u -o -d $u ]; then
URLARG="$URLARG $u"
else
URLARG="$URLARG http://$u"
fi
done

w3m $OPTS $URLARG