From b209cd2c5428925e8cd1b7f761e6276d83d5c768 Mon Sep 17 00:00:00 2001 From: Fabio Hernandez <fabio@in2p3.fr> Date: Tue, 3 May 2022 14:31:37 +0000 Subject: [PATCH] Add some debugging --- examples/search-for-pattern.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/search-for-pattern.sh b/examples/search-for-pattern.sh index f1b98c5..b60d079 100755 --- a/examples/search-for-pattern.sh +++ b/examples/search-for-pattern.sh @@ -9,6 +9,10 @@ function usage() { echo "Usage: ${name} <pattern> <input file> <output file> " } +# Debugging +echo "Number of arguments: $#" +echo "Arguments: $*" + # Parse command line pattern=$1 inputFile=$2 @@ -19,7 +23,6 @@ if [[ -z ${pattern} || -z ${inputFile} || -z ${outputFile} ]]; then exit 1 fi -echo "Arguments: $*" echo "Execution hostname: $(hostname -f)" echo "Working directory: $(pwd)" echo "Contents of working directory before execution:" -- GitLab