Why does this script work in the terminal but not from a file? – unix.stackexchange.com

I have this shell script saved in a file: it does some basic string substitution. #!/bin/sh html_file=$1 echo "html_file = $html_file" substr=.pdf pdf_file="${html_file/.html/.pdf}" echo "pdf_file = ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why does this script work in the terminal but not from a file? – unix.stackexchange.com"