grep help
i have given a command
da=`date|cut -d" " -f2,3` which gives output like Dec 13 now i want to use this in grep command like ls -ltr / |grep $da but it has given me error that grep 13 no such file or directory can someone help in this,is there any switch which can be used with grep |
Code:
da="$(date +"%b %d")" Code:
ls -ltr /|grep -F "$(date +"%b %d")" |
GNU awk
Code:
ls -l| awk '$6" "$7 == strftime("%b %d")' |
thanks!!!!! it solved my problem
|
All times are GMT -5. The time now is 01:32 AM. |