I wrote a script to save logs of request to its individual files. Over time the number of files in the folder seems to have grown in number by ALOT. Now I need to access some logs of some time range and I am not able to do it at all.
The log filename format is this: 2016-02-11_124805_4269_170784456256bc8305a7e8b1455194885_req.xml
So far I have tried
lstar -cvzf 2016-02-20.tar.gz 2016-02-20*.xmlto compress filescat 2016-02-20_01* | grep -nr "text_to_search"ls -lah >> ../list.logfind ./dirname -type f >> list2.logAnd a script to search the
for each_file in ./dirname/* do echo ls -lah $each_file >> ./dirname_file.log done
The tar and cat returns with arguments list too long, and others have not given me a response yet.
Any help is appreciated.