FOSSPicks
just
Command runners are curious things because there are so many ways to automate the running of commands. Shell scripts are the simplest and probably the most widely used. If you can type commands into a shell, you can type them into a file and run this separately. But they're also prone to errors, and not particularly resilient to changing environments, location, or systems. At the other end of the scale is a makefile, which has a heavy syntax of its own for running and controlling the commands it runs. The strangely named just
is just another example, and it bridges the best of both worlds. It makes command automation as easy as writing a script, but also as potentially programmable as a makefile.
The commands themselves are grouped together into a YAML-like text file called a justfile
. These recipes are easy to build and read but are also deceptively powerful. At their simplest, you create a label followed by an executable command, and running the just
command followed by the label will run that command. All output is included, as are comments and other feedback from the recipe. But this is just the beginning. Recipes can also include settings, arguments, variables, substitution, and even built-in functions. You can also include conditional expressions, and these are useful for iteration and parsing output and usually more generic than their shell script alternatives. All of this is beautifully documented in the project's main README file. Despite the breadth of functions on offer, it's easy to understand and use yourself. Unlike a makefile, which requires encyclopedic knowledge of the syntax before you even start, just
is fun and easy to use. If you ever find yourself running the same old commands over and over, perhaps on different machines on different distributions, just
can be a more practical and pleasant experience.
Project Website
CD ripper
Whipper
The name of this command line application seems reminiscent of Devo's definitive 1980s song, "Whip It." This isn't perhaps surprising considering we're dealing with a distinctly 1980s piece of high technology, the audio compact disc. But it's more likely, and less interesting, that the name comes from the act of ripping – copying the data from an audio CD to your computer. Your first thought might be why are CD rippers still relevant in the third decade of the 21st century, and there are two answers to this. The first is that despite a plethora of streaming services, very few serve digital audio at CD quality. Most offer streaming only via lossy compression, and CD audio delivers a gloriously uncompressed 16-bit value, 44,100 times a second. The second is that you can't always stream or buy everything that was available on a CD. Even if you can, it's probably been remastered beyond recognition. This makes many of the original CD recordings the definitive article and still worth ripping.
The ripping process itself is also surprisingly complicated. This is because while the audio data is digitally encoded on the disc, the optical diodes used to read the data are analog and can introduce read errors. While there is some error correction, it's not always enough to guarantee the integrity of the audio data, which means multiple readings and averaging are often required. And this is what Whipper does, "aiming for accuracy over speed." It can detect hidden tracks, read offsets, perform re-encoding, and correctly name and tag the extracted music files. It can also use AccurateRip's drive offset database to set drive offset values to correct known drive misalignment, although you'll need to be using one of the drives already listed. And that's likely to be the biggest problem if you want to finally rip your audio collection – finding a modern computer with an optical drive that can read audio discs.
Project Website
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.