Bash end loop for postfix logs

旧时模样 提交于 2020-06-17 09:38:10

问题


bash script that search the postfix queue id and search different .gz files in selected data range files , but script keeps on searching all logs if i gave same date ,

wanted to search only selected date range files log files list in folder

maillog-02052020.log.gz
maillog-03052020.log.gz
maillog-04052020.log.gz
maillog-05052020.log.gz
maillog-06052020.log.gz
maillog-07052020.log.gz
maillog-08052020.log.gz
maillog-09052020.log.gz

executing this script like this

sh testscript.sh frommail@xyz.com  tomail@xyz.com  04/05/2020 06/05/2020
   script         from email id     to email id    from date  end date   

script:-

来源:https://stackoverflow.com/questions/61839434/bash-end-loop-for-postfix-logs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!