From c096a98dd0298bad736e2cccbdd7fd366751e4b5 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 18 Mar 2019 09:54:44 -0400 Subject: [PATCH] Updated Recursiveness (markdown) --- Recursiveness.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Recursiveness.md b/Recursiveness.md index c73dbfb..27a299c 100644 --- a/Recursiveness.md +++ b/Recursiveness.md @@ -16,6 +16,9 @@ To check files with one of multiple extensions: ``` # Bash 4+ +# globstar makes ** recursive. +# nullglob will prevent one of the extension pattens from appearing in the arg list +# if they don't match. shopt -s globstar nullglob shellcheck /path/to/scripts/**/*.{sh,bash,ksh}