Using passwordgen On Slackware
The well known ss64.com site has a lot of useful tips and tricks for *nix users and they also have a script that you can download which will create and maintain passwords for you.
If you go to their command line section you can use the link to their GitHub site and download it for yourself. However, when I followed their installation instructions I ran into difficulty because the script has a dependency on pbcopy or gclip (which wasn’t documented) and since I run Slackware 15.0 the copy to clipboard feature failed.
Parsing Bitwarden CLI
If you use the excellent Bitwarden app for you password storage you may not be aware that they also have a command line version on Linux. It outputs data using the JSON format. You can install the jq JSON parser and pipe the output of the CLI’s query to it in order to extract the username and password for a specific site in your search:
$ bw list items --search accounts.google.com | jq '.[] | .login.uris[].uri,.login.username,.login.password'"https://accounts.google.com""john.doe@gmail.com""** password1 **""https://accounts.google.com""jdoe@gmail.com""** password2 **"