can i have a multiline command in bash for a script with an if statement in the middle?
for example
grep -r \
if [ $1 == "c" ] ; then
-c \
fi
"$@" folder
so the input could be either "./search words words" and run grep -r "words words" folder/ or "./search c words words" and run grep -r -c "words words" folder/
thought maybe it would work but maybe this would just be confusing.