Log files and output files are automatically generated by applications continuesly. So you will likely have thousands after a few days or weeks of operation. There are multiple ways to remove these older files, but we will demonstrate a simple bash command of
File names can be used to identify what is in the file, the date of changes , the classification of data, or the type of data contained with in. There are times when you will have hundreds if not thousands of files contained the same type or classification of data and you want to bulk process this information. One way of accomplishing this task is through file names of a certain format. Here we will demonstrate changing all the files contained inside a single directory with an ending of ‘renamed’ where the file begins with an f.
First create a test directory and place 6 files three beginning with t and three beginning with f.