SHA1 generate with range in terminal -
im trying generate sha1 hashes specified numeric range on terminal
i tried this
for in {1..100};do echo -n i(which ever word) | shasum -a 1 | awk '{print $1}';
doesnt seem working
okay, proper answer instead of comment.
for in {1..100}; echo -n ${i}ball | shasum -a 1 | awk '{print $1}'; done mind $ before i in particular.
generally when in doubt echo, use printf instead (-n isn't posix anyway).
generally unexpected outputs pipes these, debug removing progressively more parts of pipe: in case dropping shasum , awk original line show it's printing e.g. "i i i" instead of "1 2 3 4 5".
Comments
Post a Comment