Answer the question
In order to leave comments, you need to log in
To receive for processing of a cycle files on a mask from the folder sorted by date?
How can I get the files in a folder by mask, sorted by date (newest on top) and loop through them?
I am trying to do something like this:
$LS="ls -t | grep database"
for li in $LS
do
echo $li
done
Answer the question
In order to leave comments, you need to log in
$LS="ls -t | grep database"
for li in $LS
do
echo $li
done
$LS=...
LS=...
LS="ls -t | grep database"
LS="$(ls -t | grep database)"
LS="$(ls -t | grep database)"
for li in $LS
do
echo $li
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question