Tags: bash

square-brackets-3734552_1920.jpg

square brackets
We continue our tour of square brackets in Bash with a look at how they can act as a command.

Using Square Brackets in Bash: Part 2

Welcome back to our mini-series on square brackets. In the previous article, we looked at various ways square brackets are used at the command line, including globbing. If you've not read that article, you might want to start there. Square brackets can also be used as a command. Yep, for example,...
Read 0 Comments

square-gabriele-diwald-475007-unsplash.jpg

square brackets
This tutorial tackle square brackets and how they are used in different contexts at the command line.

Using Square Brackets in Bash: Part 1

After taking a look at how curly braces ({}) work on the command line, now it’s time to tackle brackets ([]) and see how they are used in different contexts. Globbing The first and easiest use of square brackets is in globbing. You have probably used globbing before without knowing it. Think of all...
Read 0 Comments

Tutorial: Tap the Hidden Power of Your Bash Command History

Last month I wrote about combining a series of Unix commands using pipes. But there are times where you don’t even need pipes to turn a carefully-chosen series of commands into a powerful and convenient home-grown utility. ... The echo command repeats whatever text is entered after it, for example...
Read 0 Comments

curly-braces-1920.jpg

Curly braces
We continue our tour of Bash basics with a closer look at curly braces and how and when to use them.

All about {Curly Braces} in Bash

At this stage of our Bash basics series, it would be hard not to see some crossover between topics. For example, you have already seen a lot of brackets in the examples we have shown over the past several weeks, but the focus has been elsewhere. For the next phase of the series, we’ll take a closer...
Read 0 Comments

ampersand-brian-taylor-unsplash.jpg

ampersand
In Bash, you use the ampersand (&) as the AND operator; learn more in this tutorial.

Logical & in Bash

One would think you could dispatch & in two articles. Turns out you can't. While the first article dealt with using & at the end of commands to push them into the background and then diverged into explaining process management, the second article saw & being used as a way to refer to...
Read 0 Comments

ampersand-coffee.png

ampersand
Learn how to use ampersands in combination with angle brackets and get more out of the command line.

Ampersands and File Descriptors in Bash

In our quest to examine all the clutter (&, |, ;, >, <, {, [, (, ), ], }, etc.) that is peppered throughout most chained Bash commands, we have been taking a closer look at the ampersand symbol (&). Last time, we saw how you can use & to push processes that may take a long time to...
Read 0 Comments

ampersand.png

ampersand
This tutorial takes a closer look at the ampersand (&) and the various ways it can be used at the command line.

And, Ampersand, and & in Linux

Take a look at the tools covered in the three previous articles, and you will see that understanding the glue that joins them together is as important as recognizing the tools themselves. Indeed, tools tend to be simple, and understanding what mkdir, touch, and find do (make a new directory, update...
Read 0 Comments

bash-angles.png

angles
We continue our tour of the many uses of angle brackets in this tutorial.

More About Angle Brackets in Bash

In the previous article, we introduced the subject of angle brackets (< >) and demonstrated some of their uses. Here, we'll look at the topic from a few more angles. Let's dive right in. You can use < to trick a tool into believing the output of a command is data from a file. Let's say you...
Read 0 Comments

Bash's Built-in printf Function

Even if you're already familiar with the printf command, if you got your information via "man printf" you may be missing a couple of useful features that are provided by bash's built-in version of the standard printf(1) command. If you didn't know bash had its own version of printf, then you didn't...
Read 0 Comments

architecture-1839450_1920.jpg

angles
Paul Brown provides a tour of angle brackets in this tutorial for beginners.

Understanding Angle Brackets in Bash

Bash provides many important built-in commands, like ls, cd, and mv, as well as regular tools such as grep, awk, and sed. But, it is equally important to know the punctuation marks -- the glue in the shape of dots, commas, brackets. and quotes -- that allow you to transform and push data from one...
Read 0 Comments

Pages

Click Here!