Professional Bash scripting: automating Linux administration
Exit

Lesson 6 of 12 · Structuring your scripts

grep, sed and awk in scripts: passing variables, reading and changing a configuration, going fast

50 min Rocky Linux 9

Objective

Use grep, sed and awk inside a script, where the difficulties change: passing shell variables, reacting to exit codes, guarding against user-supplied values and keeping good performance on large files.

This lesson is part of the full course

Unlock Professional Bash scripting: automating Linux administration to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.