On Wed, Jun 30, 2021 at 07:58:34AM +0200, lisa-asket@perso.be wrote:
> This is what I have
>
>
>
> Â Â Â ua="grep -ir --exclude=\\*.el --include=\\*.{org,texi}Â \\"
> Â Â Â ub="Â -C 8 \"hilbert\" /marshall/"
> Â Â Â printf "Usage: %s\n %s\n" $ua $ub
This is a mess, starting with the fact that you didn't quote "$ua"
and "$ub".
I don't see what advantage you think you're gaining by splitting the
message into pieces like that. If I were you, I'd throw this whole
thing away and use a here-document:
cat <<'EOF'
Usage: grep -ir --exclude=\*.el --include=\*.{orig,texi} \
-C 8 "hilbert" /marshall/
EOF
Just place the entire message directly into the script, exactly as you
want it to be printed. (There's a tab-indented variant, if you want to
go down that road, but start with the simpler version first.)