Assume, I have log files with this name format.NameLog.log.2014-09-27NameLog.log.2014-09-28NameLog.log.2014-09-29NameLog.log.2014-09-30NameLog.log.2014-10-01NameLog.log.2014-10-02NameLog.log.2014-10-03NameLog.log.2014-10-04I want to delete the log file only NameLog.log.2014-09-27NameLog.log.2014-09-28NameLog.log.2014-09-29NameLog.log.2014-09-30Actually I want the file log keep just 30 files.How to solve this with a bash script?
How to remove file log with file name
bash;shell script;command line;scripting