1

How to loop a text file to remove the old files?

view story
linux-howto

http://www.unix.com – Hi , I'm using Ksh 88 version. I've a text file which contains the directory names Code: DIR1 DIR2 ---- DIR10 I've to remove the data which has more that 30 days from the above directories . The data has to be removed from the following path Code: cd /home/etc/DIR1/hist cd /home/etc/DIR2/hist ------ cd /home/etc/DIR10/hist Could you please suggest me the generalized script for the following find command that can work for all the directories in the above given path. Code: find $file_path -type f -atime +30 -exec rm -f {} \; Thank you (HowTos)