I'm using the following code to try to clean up some html files.
$1 should be the name of a directory. This works fine from the command line and the requested changes are made to the files in the directory.
echo displays the
$directory in both cases, however nothing is changed in the specified directory when used from the bash script. Why? How do I fix this?
#!/bin/bash directory=$1 echo $directory LC_CTYPE=C sed -i.clean -f uncap-html.sed $directory/*.html echo DONE