10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to purge X old days of files from directory & Sub directories
Should also remove directories and sub directories too
Expected... (7 Replies)
Discussion started by: krux_rap
2. Shell Programming and Scripting
Very new in Unix and i got a requirement like writing a script and schedule it, so that it removes 30 days old files from all the log locations of a unix box.
Suppose i have a unix server ltbamdev1 and in this server i have a mount point opt/bam. In this mount point i have 3... (1 Reply)
Discussion started by: duos
3. Shell Programming and Scripting
I have an urgent requirement.
I have many files huge in size which has occupied almost the entire disk space. The files are not being moved to the archived folder.
But at present I need to purge those files, new to shell scripting, not sure how to proceed.
Directory... (3 Replies)
Discussion started by: unx100
4. Shell Programming and Scripting
I have directory where new sub directories and files being created every few minutes. The directories are like abc_date, def_date, ghi_date. I am looking to keep the latest 2 unique directories and delete everything else.
Here is what I have so far
This gives me unique names excluding the... (5 Replies)
Discussion started by: zzstore
5. Shell Programming and Scripting
I need a script (either bash or perl) that can delete previous versions of files.
For instance, from our continuous build process I get directories such as
I need a script that I can run every night (using "at"... (6 Replies)
Discussion started by: jbsimon000
6. Shell Programming and Scripting
I'm new to shell scripting... i have been given a task.. can any one help in this regard....
1) Check hourly for files in <destination-path><destination-file-template><destination-file-suffix> for files older than <destination-file-retention> days and purge. It should then check... (1 Reply)
Discussion started by: satishpabba
7. Shell Programming and Scripting
I need some help with the logic and syntax for a shell script (ksh) that will search a directory and look for similar files and save only the last two versions. The version number is in the file name. However, the files are of varying name lengths and may have 1 or many files, with no limit to... (6 Replies)
Discussion started by: synergy_texas
8. Shell Programming and Scripting
I have the followoing requirement..
Suppose I have the following files
Suppose sysdate = 29 Feb 2007
I need to delete all files... (3 Replies)
Discussion started by: sureshg_sampat
9. UNIX for Dummies Questions & Answers
I have recuirement to purge the files in a directory . In that directory i an having many sub-directory .
When i use find command like
find ~/work/test/insert -name "*.*" -mtime +12
it is listing the file not accesed before 12 , It also takes the subdirectories inside the... (7 Replies)
Discussion started by: arunkumar_mca
10. Shell Programming and Scripting
I would like to list latest 2 days, 3 days or 4 days,etc of files in the directory...
how? is it using ls? (3 Replies)
Discussion started by: happyv
DWWW-REFRESH-CACHE(8) Debian DWWW-REFRESH-CACHE(8)
dwww-refresh-cache - rebuilds dwww cache directory
dwww-refresh-cache is a simple shell script, which deletes outdated cache files and rebuilds contents of the dwww cache directory
/var/cache/dwww. In default installation, the script is called from /etc/cron.daily/dwww, so the cache is refreshed every day.
Specifies, how many days documents that have not been accessed should be kept in the cache. Default is 10 days.
Location of the installed packages and programs cache file, generated with help of dwww-quickfind(8). Default is
Location of the cache file, which maps installed doc-base files to packages names, used by the dwww-build-menu(8). Default is
Configuration file for dwww(7).
dwww cache directory.
dwww daily cron job
dwww(7), dwww-build-menu(8), dwww-cache(8), dwww-find(8).
See dwww(7), for copyrights and stuff.
dwww 1.11.1 February 15th, 2009 DWWW-REFRESH-CACHE(8)