Download and Watch Premium Linux and DevOps Courses
Buy ads: https://telega.io/c/LinuxMastery
Информация о канале обновлена 16.11.2025.
Download and Watch Premium Linux and DevOps Courses
Buy ads: https://telega.io/c/LinuxMastery
📱Linux and DevOps
📱Linux System Engineer: Bash Shell Scripting for Automation
📂 Full description
Learn how to use bash scripting to automate common tasks on Red Hat Enterprise Linux (RHEL)—one of the most popular Linux distributions. This course covers the foundations of creating and debugging bash scripts, including scripts that accept input via positional arguments, pipes, and file parsing. Plus, learn how to get data out of bash scripts and set up conditional and looping code blocks. Grant also solves some real-world problems, using bash to monitor user space and CPU usage.
Note: This course also helps you study to pass the Red Hat Certified Engineer (RHCE) exam—the benchmark certification for Red Hat Enterprise Linux.
🔅 Linux System Engineer: Bash Shell Scripting for Automation
🌐 Author: Grant McWilliams
🔰 Level: Intermediate
⏰ Duration: 57m
🌀 Learn how to use bash scripting to automate common tasks on Linux.
📗 Topics: Bash, Linux, Shell Scripting
📤 Join Linux and DevOps for more courses
📚 Loops in bash scripting
In Linux, the pipe(|) operator is very useful if you want to redirect the output of one command to serve as input to the next for further processing:
$ cat data.txt | grep "No such file"
However, this does not redirect the errors. So, if the file does not exist, the grep command above will not return a match.
What if you want to redirect and process both errors and normal output🤔
This is where this "|&" redirection operator comes in handy.
This operator sends both the standard output (stdout) and standard error (stderr) of the first command over a pipe to the standard input (stdin) of the second command. Take a look at this example:
$ cat data.txt |& grep "No such file"
Notice the difference, the grep command was able to get a match.
The "|&" operator in bash is a shorthand for the "2>&1 |" redirection operator.
$ cmd-1 2>&1 | cmd-2
46. VoIP CUCME and Cisco IP Phones
45. Quality of Service (QoS)
44. GRE Tunnel
43. IPv6 Troubleshooting Lab
Владелец канала не предоставил расширенную статистику, но Вы можете сделать ему запрос на ее получение.
Также Вы можете воспользоваться расширенным поиском и отфильтровать результаты по каналам, которые предоставили расширенную статистику.
Также Вы можете воспользоваться расширенным поиском и отфильтровать результаты по каналам, которые предоставили расширенную статистику.
Подтвердите, что вы не робот
Вы выполнили несколько запросов, и прежде чем продолжить, мы ходим убелиться в том, что они не автоматизированные.
Наш сайт использует cookie-файлы, чтобы сделать сервисы быстрее и удобнее.
Продолжая им пользоваться, вы принимаете условия
Пользовательского соглашения
и соглашаетесь со сбором cookie-файлов.
Подробности про обработку данных — в нашей
Политике обработки персональных данных.