It’s the vacation season, and each Linux terminal person deserves a little bit present. It does not matter whether or not you rejoice Christmas, one other vacation, or nothing in any respect. So I am gathering collectively a group of 24 Linux command-line toys over the subsequent few weeks so that you can get pleasure from and share with your folks. Let’s have a little bit enjoyable and add a little bit pleasure to a month that, at the very least right here within the northern hemisphere, is usually a little bit chilly and dreary.
Chances are, there will likely be a number of that you’ve got heard of earlier than. But, hopefully, we’ll all have an opportunity to be taught one thing new. (I do know I did when performing some analysis to ensure I might make it to 24.)
The first of our 24 Linux terminal toys is a program known as bins. Why begin with bins? Because it is going to be arduous to wrap up all of our different command-line presents to you with out it!
On my Fedora machine, bins wasn’t put in by default, nevertheless it was in my regular repositories, so putting in it was so simple as
$ sudo dnf set up bins -y
If you are on a special distribution, there is a good probability you will discover it in your default repositories as effectively.
Boxes a utility I actually want I had in my highschool and school laptop science programs, the place well-intentioned lecturers insisted I present very particular wanting remark in the beginning of each supply file, operate, code block, and many others.
/* Hello World */
It seems, when you add a number of traces of textual content inside, formatting them can get, effectively, tedious. Enter bins. Boxes is an easy utility for surrounding a block of textual content with an ASCII art-style field. It comes with defaults for supply code commenting, in addition to different choices.
It’s very easy to make use of. Using pipes, I can push a brief greeting right into a field.
$ cat greeting.txt | bins -d diamonds -a c
Which will give us the output as follows:
/ / /
//// //// ////
/ I am wishing you all a /
// joyous vacation season //
// and a Happy Gnu Year! //
//// //// ////
/ / /
Or maybe one thing extra enjoyable, like:
echo "I am a dog" | bins -d canine -a c
Which will, unsurprisingly, provide the following:
__ _,--="=--,_ __
/ ." .-. "./
/ ,/ _ : : _ /`
`| /o :_: /o |__/
`-'| :="~` _ `~"=: |
` (_) `/
.-"-. | / .-"-.
.--- --| /,.-'-., |-- ---.
) (_)_)_) _/`~-===-~`_/ (_(_(_) (
( I'm a canine )
Boxes comes with lots of options for padding, place, and even processing common expressions. You can be taught extra about bins on the project’s homepage, or head over to GitHub to obtain the supply code or contribute your personal field. In truth, should you’re on the lookout for an thought to submit, I’ve received an thought for you: why not a vacation current?
| /// |
| /// |
| "Happy pull |
| request!" |
Boxes is open supply underneath a GPLv2 license.
Do you’ve gotten a favourite command-line toy that you simply suppose I must profile? The calendar for this sequence is generally stuffed out however I’ve received a number of spots left. Let me know within the feedback under, and I am going to test it out. If there’s area, I am going to attempt to embody it. If not, however I get some good submissions, I am going to do a round-up of honorable mentions on the finish.