JPDev@programming.dev to Software Gore@programming.dev · 5 months agoPassword must match the followingprogramming.devimagemessage-square49fedilinkarrow-up1427arrow-down14
arrow-up1423arrow-down1imagePassword must match the followingprogramming.devJPDev@programming.dev to Software Gore@programming.dev · 5 months agomessage-square49fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up2·5 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.