Hi
what i want:
listing files in a special range
ls -lrt 20120601{05..06}*
...
-rw-rw-r-- 1 imp imp 279 1. Jun 07:51 201206010550
-rw-rw-r-- 1 imp imp 279 1. Jun 07:01 201206010600
-rw-rw-r-- 1 imp imp 279 1. Jun 07:11 201206010610
-rw-rw-r-- 1 imp imp 279 1. Jun 07:21 201206010620
-rw-rw-r-- 1 imp imp 279 1. Jun 07:31 201206010630
-rw-rw-r-- 1 imp imp 279 1. Jun 07:41 201206010640
-rw-rw-r-- 1 imp imp 279 1. Jun 07:51 201206010650
.. setting the command like this, it is working properly.
If i subst one value by a variable or a command...
M=05
ls -lrt 20120601{$M..06}*
"note"
ls: no access to 20120601{05..06}* : cant find file or directory.
.. with the command ..
ls -lrt 20120601{`date +%m`..06}ls -lrt 20120601{`date --date="9 days ago" +%m`..06}
ls: no access to20120601{05..06}*cant find file or directory.
It seems to me, that the brackets are still there ..
A colleague gave me a first hint ..
ls -lrt `eval echo 20120601{$M..06}*`
Can someone help me, how to do it... more elegant and especially with the subst. commands.
Thanks in advance
IMPe