Hi All i want to use the following command to delete directories dated Jan 2010 only
ls -lh | awk '{print $6 " " $9}' | sed -n '/Jan/p' | awk '{print $2}' >>/tmp/file_list
The above command will list all directories dated Jan, but i have in my list Jan 2010 and Jan 2011
Anyone can help me in SED command to list only the directories date Jan, 2010?
Appreciate your help.