Skip to content

test

Bash Matching Regex Cover

Matching regex in bash

In the last article we talked about the test command. The test command evaluates conditional statements on files, strings, and integers. In order to match against a regular expression, we need to use a new type of compound command. This command serves as a wrapper… Read More »Matching regex in bash

Linux Shell Script Test Cover

Using test in Linux scripts

In the last article we talked about the basics of Linux shell scripts. In this one, we’ll mention test, a command-line utility that evaluates and compares conditional expressions. Test is a shell builtin most commonly used with the if statement. Depending on the expression, conditional… Read More »Using test in Linux scripts