1

Issue while executing script

view story
linux-howto

http://www.unix.com – Hi, I'm trying to use the below command in a shell script, but couldn't. The command is working fine when I'm executing from the dollar prompt i.e. shell. Command: Code: grep -i fail /home/applmgr/error.log |egrep -i "`date  --date="-4  day" +"%m/%d/%Y"`|`date --date="-4 day" +"%m/%d/%y"`" |egrep -i "dbf|ctl|redo|prop|conf|xml"|wc -l I tried putting the command in `` and it's throwing the below error. Code: -bash: command substitution: line 1: unexpected EOF while looking for matching `"' -bash: comma (HowTos)