To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
Code:
cd /hyperion/logs/essbase/app
Check to find all the Essbase Application logs
Code:
find .
how do i remove sub directories of a directory and all files which are older than 7 days by a single command in AIX. pls help me.
I am using command as
#find /gpfs1/home/vinod/hpc/ -depth -type d -mtime +7 -exec rm -rf {} \;
so i want to delete all sub directories and all files from the hpc dir. which are older than 7 days.
Hello
I have a large number of files in a directory, when I issue either one of these statements to get a list of files older than 90 days sorted by time descending I do not get the expected results:
Code:
find . -type f -mtime +90 | xargs ls -ltr
find .
Autotrash is a simple Python script comes with Ubuntu 10.10 Maverick Meerkat which will purge files from your trash when they become older than a given days,purge older files to ensure a specific amount of disk space is free,etc.It uses the FreeDesktop.org Trash Info files included in the new GNOME system to find the correct files and the dates they where deleted.
How to find and delete older files (older than 7 days) in a folder using a bash script? Its a folder in a server which contain automatic backups. Need to delete old ones automatically so there's space for new ones.
hi i need a script to delete the files older than 2 days...
if my input is say in a folder versions
A_14122012.txt
A_15122012.txt
A_16122012.txt
A_17122012.txt
i want my output to be
A_16122012.txt
A_17122012.txt
thanks in advance
hemanth saikumar.
Hello,
im new to this forum and directly start with a problem... :)
I have a folder structure like :
/folder/01/1/oldfiles
/folder/01/2/oldfiles
/folder/02/1/oldfiles
/folder/0x/y/oldfiles
Every Month a new folder adds automaticly from the system.
Now i need an idea how to search for files inside every oldfiles folder and remove files older than 20 days.
I can use "find .
I am using SFTP to transmit files from the Mainframe to an UNIX server. I am looking for some kind of script that runs with SFTP to delete tranmitted files older than 3 days.
Can this be done in a SFTP transmission batch job?
Hi All
I need to move the older than 30 days file to another ftp server. I have source structure like this
Files folder
Code:
Folder1
Folder2
Folder3
I need to create same Target structure and I need to move the older than 30 day file to another ftp server, can you please suggest me how I develop the unix script.