• pivot_root@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago
    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, the head -c256 can be dropped.