Article 50S0A Need shell script to delete files which are older than 7 days

Need shell script to delete files which are older than 7 days

by
arimadhavan
from LinuxQuestions.org on (#50S0A)
Hi All,

Please help me with a script to delete files with below criteria

file which are in folder /data/inbound & /logs/l* with file names as below & which are older than 7 days

a. TRANS123_*_*.txt --> folder: /data/inbound
b. BALS123_*_*.err --> folder: /logs/l*
c. SYSTEM123_*_*.txt --> folder: /data/inbound
d. VALUE123_*_*.err --> folder: /logs/l*

Thankslatest?d=yIl2AUoC8zA latest?i=dynvxFQcyl8:T8vZFRpyogQ:F7zBnMy latest?i=dynvxFQcyl8:T8vZFRpyogQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=dynvxFQcyl8:T8vZFRpyogQ:gIN9vFwdynvxFQcyl8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments