Relative Content

Tag Archive for bashif-statementconditional-statementsconditional-operator

Cannot apply condition to grep output in bash script

The data for this script comes from curl and then I grep a few specific response headers. For this example let’s focus on “cf-cache-status”. This header has 4 potential values (EXPIRED, HIT, DYNAMIC, MISS).