View Full Version : Bash script your post.
dragos240
October 25th, 2009, 10:44 AM
echo "Hello"
echo "Make a few posts using your bash scripting skills"
Penguin Guy
October 25th, 2009, 10:48 AM
echo 'Fail.'
tom66
October 25th, 2009, 10:53 AM
for i in "One" "Two" "Three" "Four" "Five"
do
echo "A $i... "
done
echo "That is all."
RiceMonster
October 25th, 2009, 10:55 AM
#!/bin/bash
THIS_THREAD="lame"
if [ $THIS_THREAD="lame" ]; then
echo lame thread is lame
fi
echo "What's with the random fi at the end of your post?"
dragos240
October 25th, 2009, 11:06 AM
#!/bin/bash
THIS_THREAD="lame"
if [ $THIS_THREAD="lame" ]; then
echo lame thread is lame
fi
echo "What's with the random fi at the end of your post?"
No idea. I just put it there.
diesch
October 25th, 2009, 11:11 AM
echo 'h+225 =582*A'|tr '[A-z!-@]' '[!-z]'
Joeb454
October 25th, 2009, 11:16 AM
#!/bin/bash
THREAD=http://ubuntuforums.org/showthread.php?t=1300739
FORUM="Cafe Games"
if [$FORUM == "Community Cafe"]; then
echo "Thread ($THREAD) moved to $FORUM"
fi
:)
Penguin Guy
October 25th, 2009, 11:30 AM
echo 'h+225 =582*A'|tr '[A-z!-@]' '[!-z]'
echo 'l52 M w582*G9 359: )5362/)':+* Gh+225 w582*G 685-8'3 +<+8N' | tr '[A-z!-@]' '[!-z]'
NoaHall
October 25th, 2009, 11:35 AM
#!/bin/bash
THREAD=http://ubuntuforums.org/showthread.php?t=1300739
FORUM="Cafe Games"
if [$FORUM == "Community Cafe"]; then
echo "Thread ($THREAD) moved to $FORUM"
fi
:)
That wouldn't work ;) You've set the forum already, so you'd be comparing it to something which won't be true. And if it's equal to "Community Cafe", it would be moved to there ;)
Penguin Guy
October 25th, 2009, 11:46 AM
That wouldn't work ;) You've set the forum already, so you'd be comparing it to something which won't be true. And if it's equal to "Community Cafe", it would be moved to there ;)
Not to mention the multiple syntax errors. :P Try this:
#!/bin/bash
THREADURL="http://ubuntuforums.org/showthread.php?t=1300739"
THREADNAME="Bash Script Your Post"
OLDFORUM="Community Cafe"
NEWFORUM="Cafe Games"
if [ "$OLDFORUM" == "Community Cafe" ]
then
echo "$THREADNAME ($THREADURL) moved from $OLDFORUM to $NEWFORUM"
fi
Joeb454
October 25th, 2009, 12:03 PM
I didn't think it would work, so I sort of gave up half way through. Either way, you got the point
amingv
October 25th, 2009, 03:10 PM
#!/bin/bash
#echo "Ha ha! You cannot see this message."
#echo "Finally, I managed to write a perfectly invisible post."
#echo "I bet you all must be wondering how I skipped the post minimun lenght filter."
#echo "I can taste the awe and disbelief in your faces already."
dragos240
October 25th, 2009, 03:54 PM
#!/bin/bash
#echo "Ha ha! You cannot see this message."
#echo "Finally, I managed to write a perfectly invisible post."
#echo "I bet you all must be wondering how I skipped the post minimun lenght filter."
#echo "I can taste the awe and disbelief in your faces already."
Orly?
Bachstelze
October 25th, 2009, 03:55 PM
yes this thread is stupid
dragos240
October 25th, 2009, 04:12 PM
yes this thread is stupid
Orlynao?
amingv
October 25th, 2009, 04:21 PM
Orly?
-bash: Orly: command not found
Penguin Guy
October 25th, 2009, 04:27 PM
#!/bin/bash
#echo "ha ha! You cannot see this message."
#echo "finally, i managed to write a perfectly invisible post."
#echo "i bet you all must be wondering how i skipped the post minimun lenght filter."
#echo "i can taste the awe and disbelief in your faces already."
Gwasanaethau
October 27th, 2009, 06:40 PM
#!/bin/bash
echo 'S;-{D}'
aplay ${HOME}/sounds/laugh.spx
exit 0
LinuxGuy1234
October 27th, 2009, 08:09 PM
#!/usr/bin/perl
##!/bin/bash
#echo I broke the rules
print "Hmmm";
#echo You suck
print "Dummy! Banned for 12 months!";
Coversation between Perl and bash.
dragos240
October 28th, 2009, 02:59 PM
Would making multiple programming languages in a post be better than just BASH?
jwbrase
October 30th, 2009, 06:59 PM
#!/bin/bash
cat $0
jwbrase
October 30th, 2009, 07:13 PM
echo 'l52 M w582*G9 359: )5362/)':+* Gh+225 w582*G 685-8'3 +<+8N' | tr '[A-z!-@]' '[!-z]'
#!/bin/bash
sudo apt-get install malbolge
sudo apt-get install intercal
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.