I'm trying to grep for missing values in an unzipped powerpoint doc. I'm using this line in my script:
for s in *.xml; do grep -L ppaction://media "$SLIDE_PATH/${s}" | grep -o -E '[0-9]+'; done
the script kicks an error:
grep /genetics/ppt/slides/: No such file or directory
grep: *.xml: No such file or directory
yet that line works fine when run from the terminal. Any ideas what I'm doing wrong here?
$SLIDE_PATHis set in your terminal but not in whatever shell you are using in your script