linux - Trying to redirect in script -


i'm trying redirect results of zgrep directory using shell script. but, i'm getting following error. line 7: /home/johnm/http_files/: directory

#!/bin/bash  files=/data/log/2015/09 file in $files echo "processing $file" zgrep 'sans' $file > /home/johnm/http_files/ done 

thank you.

you have redirect file not directory. add file name after path , should work ok.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -