Save all the file of current date in another dir?

Hi

i want to copy all the files of current date in another directory.
for example, below i want to save all the file of 26 march to copied in debug dir.

 
$  ls -lrt | tail -5
-rwxrwxrwx  1 khare  guest        73 Jan  6 12:35 chk
-rw-r--r--  1 khare  guest        770 Mar 26 02:21 cc1
-rw-r--r--  1 khare  guest        770 Mar 26 02:22 cc2
-rw-r--r--  1 khare  guest        770 Mar 26 02:22 cc3
-rw-r--r--  1 khare  guest        770 Mar 26 02:35 cp 

i tried using some of the below command but not workin.

 
 ls -lrt | grep 'Mar 26' | cp -p | awk '{print $9}' /home/guest/khare/debug
 
                                      AND
 
cp -p ls -lrt | grep 'Mar 26' | awk '{print $9}' /home/guest/khare/debug

thx in advance

Regards
Scriptor

well, e.g. lets take your last line:
you cp what?

cp -p $( ls -lrt | grep 'Mar 26' | awk '{print $9}') /home/guest/khare/debug

OK?

1 Like

thx a lot vbe it works