Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: unix-shell-script-kit v12 = many utility functions for your scripting (github.com/sixarm)
1 point by jph on April 5, 2023 | hide | past | favorite | 1 comment


Unix shell script kit v12 adds new random character functions, motivated by the recent Hacker News post about shell random generation.

The new functions use /dev/urandom, are POSIX compatible, and provide various character class helpers to generate :alpha:, :digit:, :graph:, etc., and with a length parameter.

Example:

     random_char 'ABCD' 8 => DACABBCA

Original post: https://news.ycombinator.com/item?id=35326648




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: