Download Latest Version v3.0.0-Alpha_ a WIP_cleanup release source code.zip (348.0 kB)
Email in envelope

Get an email when there's a new version of Useful Scripts

Home / v2.5.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-04-12 2.4 kB
v2.5.4 source code.tar.gz 2024-04-12 333.0 kB
v2.5.4 source code.zip 2024-04-12 353.3 kB
Totals: 3 Items   688.7 kB 0

repo-icon

â˜˜ī¸ Features

  • [c]: ensure use command on PATH, and check the command existence on PATH đŸ‘Ŗ
  • [coat/taoc]: add --help/--version options 🚩

đŸŦ Improvements

  • [find-in-jars]: add IFS= for read, more robust đŸ’Ē
  • file paths may contain leading spaces
  • [show-busy-java-threads]:
  • improve separator blank line output 💅 fix wrong blank line logic
  • extract timestamp var to avoid inconsistency âŒšī¸
  • use ${var##} instead of basename đŸŽ›ī¸
  • faster, no subprocess fork
  • use command realpath instead of function portableReadLink 🔗
  • faster and without losing portability
  • use bash builtin type -P instead of which command, faster 🐚

đŸ› ī¸ Refactor

  • [show-busy-java-threads]: rename global var USER -> WHOAMI 👤
  • [uq]: use exponential operation instead of multiplication to calculate size 🧮
  • [c]: rename functions 🔡
  • extract UNAME var 🔠
  • use Shell Arithmetic comparison instead of Conditional Expressions đŸ”ĸ
  • use ||/&& instead of one branch/one line if 🎰
  • remove unnecessary file descriptor number 1 in redirections âžĄī¸
  • simplify and uniform the codes
  • remove declare keyword for global vars, more consistent
  • use upper-case var name for global readonly vars
  • unset temp global vars after use
  • unify error message format and refactor related functions â„šī¸
  • keep usage function simple
  • use -s/-h option for optional argument of die function
  • rename var, use COLOR_INDEX instead of COUNT
  • small code cleanup
  • merge colorPrint function if only one caller
  • remove local nl=$'\n' declaration if only one usage
  • remove unnecessary {} when use var
  • use upper-case var name for global readonly vars
  • use = instead of == in Conditional Expressions
  • remove section comments for simple section
  • improve/fix/add code comments

📚 Documentation

  • update manual pages links to manned.org 📚
  • use shellcheck item doc link instead of prolixity comments ✨

🚜 Build/CI

  • upgrade GitHub actions; add dependabot.yml 🤖
  • upgrade shunit2 lib

Have Fun! 💕 2024-04-12

Source: README.md, updated 2024-04-12