-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsay.sh
More file actions
30 lines (26 loc) · 715 Bytes
/
say.sh
File metadata and controls
30 lines (26 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
. c.sh
if [ $canresize ]
then
${resize} -s 5 60
clear
fi
echo "Hi,!"
read -p "What is your username? " user
echo "Hello, ${user}!"
# fake_shell.sh https://gist.github.com/JKirchartz/9abdf0ffe6687971cd28d03c021078e2
function parser {
shopt -s nocasematch
case "$*" in
exit) exit 0;;
echo*) shift; echo $*;;
# *) figlet $*;;
*) curl -d user=${user} --data-urlencode chat="""$*""" -G $FORM;;
#wget -c -o /dev/null $URL -O $FILE;;
#wget -ca -o /dev/null -O $FILE $URL;;
#curl -d user=a -d chat=jgjg -G http://localhost/chat.php
#URL="http://localhost/txt.txt";
#wget -ca -o /dev/null -O output.txt "$URL";;
esac
}
# fake a shell
while read -p "$>" i; do parser $i; done