Created
May 5, 2012 18:03
-
-
Save nuke99/2604407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
selected = 2 # this can be changed anytime . the second of null changed to 2nd beause of this variable | |
total = 10 #total nulls | |
word = ",null" | |
count= word * (total-1) | |
puts "somesite.com/?id=1 null#{count}--" | |
#I want the output as | |
# somesite.com/?id=1 null,2nd,null,null,null,null,null,null,null,null-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment