I have this list of files and I need to get the files between two dates like this command shell in PHP:
all_doc_test_2017-07-01.dog all_doc_test_2017-07-02.dog all_doc_test_2017-07-03.dog all_doc_test_2017-07-04.dog all_doc_test_2017-07-05.dog all_doc_test_2017-07-06.dog all_doc_test_2017-07-07.dog all_doc_test_2017-07-08.dog all2_doc_test_2017-07-07.dog all3_doc_test_2017-07-07.dog all4_doc_test_2017-07-07.dog
I use this command to get one date:
shell_exec("ls -d /home/doc/*07.dog ");
so I get like this :
all_doc_test_2017-07-07.dog all2_doc_test_2017-07-07.dog all3_doc_test_2017-07-07.dog all4_doc_test_2017-07-07.dog
I need a command to get the files between two numbers like this:
ls -d /home/doc/*01.dog && ls -d /home/doc/*06.dog
and get this:
all_doc_test_2017-07-01.dog all_doc_test_2017-07-02.dog all_doc_test_2017-07-03.dog all_doc_test_2017-07-04.dog all_doc_test_2017-07-05.dog all_doc_test_2017-07-06.dog