JPDev@programming.dev to Software Gore@programming.dev · 6 months agoPassword must match the followingprogramming.devimagemessage-square49fedilinkarrow-up1414arrow-down14
arrow-up1410arrow-down1imagePassword must match the followingprogramming.devJPDev@programming.dev to Software Gore@programming.dev · 6 months agomessage-square49fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up2·6 months agotr -d '\n' < /dev/random | head -c256 | LANG=C sed 's/[^\x21-\x7E]//g' | head -c3 If you can figure out how to make sed stop after it outputs a specific number of characters, the head -c256 can be dropped.
tr -d '\n' < /dev/random | head -c256 | LANG=C sed 's/[^\x21-\x7E]//g' | head -c3
If you can figure out how to make
sed
stop after it outputs a specific number of characters, thehead -c256
can be dropped.