DEV Community

Cover image for Writing complex bash commands using redirecting, chaining & nesting
A. S. Zaghloul
A. S. Zaghloul

Posted on

Writing complex bash commands using redirecting, chaining & nesting

In previous submission, we discussed 8 fundamental bash commands and their options as an overview of this scripting language.

Today, we will deep dive into a bit advanced concepts, including:

  • Chaining: execute multiple commands sequentially.
  • Pipelines: send the output of a command as an input of the next one.
  • Redirecting: channeling data out of or into a command.
  • Nesting: calling a command inside another command while sending the output of the inner command as an argument of the outer command.

Check in 7 minutes, the step by step video with examples below:

In future videos, we will discuss bash scripting in a shell file fundamentals and best practices.

Discussion (0)