Wednesday, January 21, 2026

Shell script tutorial  - set

This script shows the importance of set command.

set -x #debug mode

set - e #exit the script when there is an error

set -o pipefail #(if there is pipe used in script, set -e won't fail, hence we should also use set -o).




Output





No comments:

Post a Comment

Python Passing arguments through function using args and kwargs args take non keyworded arguments, while kwargs take keyworded arguments. de...