Hi there,
I have this command
find . \( ! -name '*.gz' \) -mtime +7
Which shows me all the files not accessed in the last seven days and are not having extension of .gz . So logically speaking
find . \( ! -name '*.gz' \) -mtime +7 -exec gzip {} \;
This should gzip the files.
But for some reason, it dosent gzip and since the command is valid there isnt an error either. Have spent a lot of time but no getting anywhere. Any ideas folks ?
Thanks
I have this command
find . \( ! -name '*.gz' \) -mtime +7
Which shows me all the files not accessed in the last seven days and are not having extension of .gz . So logically speaking
find . \( ! -name '*.gz' \) -mtime +7 -exec gzip {} \;
This should gzip the files.
But for some reason, it dosent gzip and since the command is valid there isnt an error either. Have spent a lot of time but no getting anywhere. Any ideas folks ?
Thanks