Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Wordlist maker

by Anonymous Monk
on Apr 03, 2020 at 11:38 UTC ( [id://11114986]=note: print w/replies, xml ) Need Help??


in reply to Wordlist maker

#!/usr/bin/perl $startingNum = 0001000000000000; $EndNum = 9999000000000000; $KiloBytes = $EndNum - $startingNum /1024; $MegaByte = $KiloBytes / 1024; $GigaByte = $MegaByte / 1024; $Terabyte = $GigaByte / 1024; print "The File will take up: " , $KiloBytes , "kb\n" , $MegaByte , "m +b\n" , $GigaByte , "gb\n" , $Terabyte , "TB\n"; while($startingNum++ < $EndNum) { #print "$startingNum\n"; #print "Writing " + $startingNum + " to file"; printf "%016d\n", $startingNum; }

2020-04-03 Athanasius added code tags.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-18 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found