Search Results

Search: Posts Made By: theguy16
131,077
Posted By theguy16
How to delete files in UNIX using shell script
Hi,

find /path/to/directory -mtime -5 -ok rm -f {} \

is working fine. But there is one more concern. This command deletes all the files in the specified directory along with files in...
2,735
Posted By theguy16
Display file names that are being deleted
The print command lists the path of the file being found. I want the output as the file name along with the date that particular files were created i.e similar to a ls -l command.

I am using find...
131,077
Posted By theguy16
Thanks for the reply. Still there is one...
Thanks for the reply.

Still there is one issue left. How can we determine the number of files it has deleted after we run the script ?
131,077
Posted By theguy16
How to delete files in UNIX using shell script
Hi,

I have the following task to perform using shell script.

The user will provide a directory name along with a date. The script will delete all the files in the specified directory that was...
Showing results 1 to 4 of 4

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