On the basename man page it has two syntax uses. Only the second version works for me
basename NAME [SUFFIX]
basename OPTION... NAME...
version one:
basename -s datafile.pdf
doesnt work but
basename datafile.pdf .pdf
-does work
as does the necessity of using the back ticks in the script to exec the command
OUTFILE=
experimented both direct command line and in a script and some web searching to get it right
basename NAME [SUFFIX]
basename OPTION... NAME...
version one:
basename -s datafile.pdf
doesnt work but
basename datafile.pdf .pdf
-does work
as does the necessity of using the back ticks in the script to exec the command
OUTFILE=
basename ${INFILE} .pdf
experimented both direct command line and in a script and some web searching to get it right