I'm trying to write a small script to get me list of files that match certain criteria into a file.#!/bin/shcd /var/www_data/patch/grep --include=\*.{php,ini,conf,sh} -ril -P '([\d\w\-\_\.]+)(@domain.com)' /var/www_data/something/ 2>&1 > mailsThe grep line works perfectly in command line but if I launch it via script, resulting file will have size of 0 bytes. Any ideas why this is happening?
grep works fine in command line but returns nothing in script
bash;shell script;grep