diff --git a/examples/search-for-pattern.sh b/examples/search-for-pattern.sh
index f1b98c5e04055e7b5fef6ed03069e043e49fe492..b60d079bfb1bbdd84d19dfe447682a13ed9564af 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:"