Jump to content
Sign in to follow this  
Xen

Retardedly awesome old bash script

Recommended Posts

Found this script cleaning up an old hard drive from when i was a kid:

 

#!/usr/bin/bash
set -e

i=0

until  [$i == "100"] 
do
		touch $i.txt
		i=$i+1
done;

Give it a run and then do an 'ls' of the directory and enjoy the pretty pattern.

 

Funny thing is i think this was unintentional, just a fuck up while learning bash :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×