Meta-programming in Shell

submited 03 August 2022

In this article, they talk about how to use FreeBSD's shell for meta-programming, where the program's execution changes based on other programs using hooks (function names) and data (environment variables)

The BSD community linklog
Made a script? Written a blog post? Found a useful tutorial? Share it with the BSD community here or just enjoy what everyone else has found!

Submit

19 December 2024
Announcing NetBSD 10.1  

This release includes 9 months of bug fixes and a few new features after the 10.0 release in March. It also gives those still using older release a good reason to finally update to the NetBSD 10 release branch, even if they avoid dot-zero releases by all means.

BSD Now 590: Single, not sorry  

In this episode, Benedict shows some of the tools he loves to use including Markdown (producing PDFs and other docs using Pandoc), AWK, and Graphviz. A lot of tutorials and getting-started links in this practical-oriented episode for you.

Celebrating 2024’s Collaborative Achievements at the FreeBSD Foundation  

As 2024 comes to a close, the FreeBSD Foundation reflects on a year defined by significant technical accomplishments, strategic collaborations, and tangible growth for the FreeBSD Project.

Winter 2024 Roundup: Storage and Network Diagnostics  

As the winter chill sets in, here comes a special holiday roundup that explores problem-solving, featuring stories and guides that showcase the investigative work Klara has done on OpenZFS and FreeBSD. Whether you're a seasoned sysadmin or just exploring OpenZFS and FreeBSD, these stories will equip you to tackle your next technical challenge with confidence and insight.

17 December 2024
Video: Run the latest Seamonkey Browser in FreeBSD & GhostBSD  

Seamonkey has been gone from FreeBSD for a few years now, but not any longer - run the 64-Bit Linux version with no (or very little) effort. The SeaMonkey project is a community effort to develop the SeaMonkey Internet Application Suite which follows the famous Mozilla Internet Suite from a few years back.

Printing on HP Color Laser 150nw from OpenBSD  

Author got an HP Color Laser 150nw wireless printer some time ago and never really tried to use it with OpenBSD. But after discovering that it works well on their wife’s Slackware Linux laptop (better than on Windows 10), they decided to give it a try using OpenBSD.

Why FreeBSD Should Be the Foundation for Your Security Product  

As you already know, choosing the right technology stack is critical to building secure, reliable, and future-proof products. While Linux is often the default choice for open-source operating systems, it’s not the only option—and it may not be the best one. FreeBSD offers unique advantages that align with the priorities of security-focused organizations, providing a strong, stable foundation for your product’s success.

Enjoying DiscoverBSD? There is more...

Subscribe to BSD Weekly, our free, once–weekly e-mail round-up of BSD news and articles. It is currated from your content on DiscoverBSD and BSDSec (a deadsimple BSD Security Advisories and Announcements).

You can also support the work on Patreon.
16 December 2024
BSD Now 589: The buffering pipe  

Open-Source Software Is in Crisis, A Brief History of Cyrix, Userland Disk I/O, OPNsense 24.7.9 released, GhostBSD 24.10.1 Is Now Available, Why pipes sometimes get "stuck": buffering, Keep your OmniOS server time synced, and more.

13 December 2024
FreeBSD 14 replaces Sendmail with DMA  

FreeBSD 14 introduces DMA, the lightweight Mail Transport Agent from DragonFly BSD, as the default replacement for Sendmail. This article outlines the reasons behind the change, highlights the benefits of DMA, and provides a step-by-step guide to configuring it for efficient email handling on minimal systems.

12 December 2024
GhostBSD 24.10.01  

"A simple, elegant desktop BSD Operating System" - the official description of GhostBSD, and it's not wrong. Here we have a look at GhostBSD 24.10.1 and see how things are currently with this user friendly FreeBSD-based OS.

load more