random bash scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
183 B

  1. #! /usr/bin/env bash
  2. characters="${PASSWORD_STORE_CHARACTER_SET_NO_SYMBOLS:-[:alnum:]}"
  3. read -r -n 30 pass < <(LC_ALL=C tr -dc "$characters" </dev/urandom)
  4. echo -n "$pass" | xsel -b