JPDev@programming.dev to Software Gore@programming.dev · 2 months agoPassword must match the followingprogramming.devimagemessage-square49fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1imagePassword must match the followingprogramming.devJPDev@programming.dev to Software Gore@programming.dev · 2 months agomessage-square49fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up0·2 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.