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
Post a Comment