> ls -l -Q|grep 'Jan  4'|cut -d '"' -f 2

Grepping for output 'Jan  4' of ls is a bad idea. The date output format
of ls can vary considerably, and has a tendency to be dependent on
whether the file's time is older or newer than 6 months. Also see re cut
below.

> stat -c %y#%n * |grep 2005-01-04|cut -d '#'  -f2

Your use of cut is unsafe, there was a reason why I used cut -c.
Extracting column 2 as filename doesn't work if the filename contains
the delimiting character. Safest would be to use sed to obliterate
everything until the first "#".

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to