Getting unexpected output from linux script.
Hello,
When we are using find command for finding text file.We are getting .txt file plus .gz file.
We are using below commands
find /opt/tibco/CustomScripts/Daily_Monitoring/ -type f -mtime -2 \! -name '`date "+%b-%dth-%Y-%H:%M"`.txt' -exec gzip {} \;
I want output only .txt file.
I am getting error gzip: /opt/tibco/CustomScripts/Daily_Monitoring/awor-oqtibbw01.010520170200.txt.gz already has .gz suffix -- unchanged
can you please help me.
Last edited by ashvini jamdar; 05-05-2017 at 08:19 PM.
Reason: adding error
|