Search Results

Search: Posts Made By: rajeshjohney
48,327
Posted By rajeshjohney
Delete files older than 10 Days in a directory Reply to Thread
Hi
I tried by including the path as below.
find /lz/BI/ -mtime +31 -name 'Datapull*.csv.COMPLETE' -exec rm -f {} \;

Got below error.
find: missing argument to `-exec'

Iam very new to unix...
48,327
Posted By rajeshjohney
Delete files older than 10 Days in a directory Reply to Thread
I tried as below

# Remove files older than 31 Days
find -iname -mtime +31 -name 'Datapull*.csv.COMPLETE' -exec rm -f {} \;

But when i tried to execute the shell script i got the bellow error...
48,327
Posted By rajeshjohney
Delete files older than 10 Days in a directory
Hi All

I want to remove the files with name like data*.csv from the directory older than 10 days.
If there is no files exists to remove older than 10 days, It should not do anything.

Thanks
Jo
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 04:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy