jq הפך לכלי משמעותי עבור עיבוד וניתוח JSON. htmlq מציע כלי דומה עבור HTML עם יכולות שליפת תוכן ואלמנטים, הסרתם וסידור של התוכן.
אם נרצה לשלוף את הכותרות בעמוד הראשי של lwn לדוגמה:
at 11:14:08 ❯ curl -s https://lwn.net | htmlq h2.Headline --text
[$] Some 5.19 development statistics
[$] Direct host system calls from KVM
[$] Security requirements for new kernel features
[$] LWN.net Weekly Edition for July 28, 2022
[$] Digital autonomy and the GNOME desktop
[$] Docker and the OCI container ecosystem
[$] Support for Intel's Linear Address Masking
[$] Stuffing the return stack buffer
[$] Living with the Rust trademark
LWN.net Weekly Edition for July 21, 2022
The 2022 Linux Plumbers Conference schedule is out
Security updates for Monday
The 5.19 kernel is out
Linux Mint 21 released
Kicinski: TLS 1.3 Rx improvements in Linux 5.20
Seven new stable kernels
Security updates for Friday
Security updates for Thursday
Vetter: Locking Engineering Principles
Nethercote: Twenty years of Valgrind
ראו מאמר ב־nixCraft אשר מסביר על התקנה ושימוש ב־htmlq.