Search Results

Search: Posts Made By: dtruchan
Forum: HP-UX 10-17-2008
8,938
Posted By dtruchan
Script I wrote a while ago.
I cut/pasted below a script I used to use a long time ago to check the available memory on HP and SGI.


#!/bin/ksh
#
TMPFL=/tmp/showsys.tmp;touch $TMPFL
SCRIPTDIR=/scripts
case `uname -s` in...
8,701
Posted By dtruchan
Use find -mtime, or +mtime
find /tmp -type f -name '*.log' -mtime +2 -exec rm -rf '{}' ';'

this would find all files in slash tmp that end with dot log that are two days old.
Showing results 1 to 2 of 2

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