10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello everyone.
in /opt/abc every night there is a new folder created. in that folder there is aseries of files created for that day.
i would like to run a script every Sunday night at 02:00 to compress each file separately (preserving its name) who is older than 2 days.
i have found this... (2 Replies)
Discussion started by: atux
2 Replies
2. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
how to compress the directories which is older 7 days.
If any one knows please help me this is urgent.
Thanks in advance (3 Replies)
Discussion started by: rameshpagadala
3 Replies
4. Shell Programming and Scripting
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
Discussion started by: Navkreddy
2 Replies
5. Shell Programming and Scripting
Hi
I need help in the script which looks at a contorl file which has a list of file names like xxxx.12345 and I want to take only xxxxx and search in a specific directory and remove the file if its older than 60 days
I have written something like this.. but seems to be wrong... (1 Reply)
Discussion started by: antointoronto
1 Replies
6. Shell Programming and Scripting
Hi all. Here's my situation:
I have performance reports that run every 30 minutes saved in the format:
stats_report_11251000.txt
stats_report_11251030.txt
stats_report_11251100.txt
stats_report_11251130.txt
(Obviously run at Nov 25 10 AM, 10:30 AM, 11 AM and so on...)
I would... (2 Replies)
Discussion started by: jamie_collins
2 Replies
7. Solaris
Hello,
I need help in finding files older than x days and creating a single consolidated tar file combining them. Can anyone please provide me a script?
Thanks,
Dawn (3 Replies)
Discussion started by: Dawn Bosch
3 Replies
8. Shell Programming and Scripting
Hi,
I need to remove files (*.trc) which are older than 30 days from one location.
My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there... (6 Replies)
Discussion started by: malaymaru
6 Replies
9. UNIX for Dummies Questions & Answers
need help with this ...
Find files older than 5 days and remove tem after listing
list "test" file older than 5 days and then remove them (1 Reply)
Discussion started by: ypatel6871
1 Replies
10. UNIX for Dummies Questions & Answers
Hi there,
I am trying to tar a number of files held in a specific folder. I am only interested in archiving files older than 30 days. Having read through the man entries and all available documentation I thought I'd cracked the coomand with
tar -c -z -v -N 15/04/2004 -f /wfch.tar *
This... (6 Replies)
Discussion started by: wfch
6 Replies