$LS="ls -t | grep database"
for li in $LS
do
echo $li
done
$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