File: search

package info (click to toggle)
frobby 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,616 kB
  • sloc: cpp: 30,134; sh: 1,184; makefile: 306; ansic: 102; lisp: 10
file content (11 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

digits=8
entries=4

for (( c=1; c<=1000000; c++ )) do
  echo -n "try $c. ($entries entries of $digits digits)  ";
  ../bin/frobby genfrob -entryCount $entries -maxEntryDigits $digits > ../tmp/w 2>/dev/null;
  ./lata ../tmp/w;
  if [ $? != 0 ]; then echo "found one!"; exit 42; fi
done