1753860 Members
7833 Online
108809 Solutions
New Discussion юеВ

Re: awk issue

 
SOLVED
Go to solution
Shibin_2
Honored Contributor

Re: awk issue

try this.

... | awk '
{
if ($6 == "Jan" && $7 == 1 && $8 != 2010)
print $9
}'
Regards
Shibin
NDO
Super Advisor

Re: awk issue

Hi
Shibin!

Your suggestion worked perfectely, I havwe modified slightly to list all January files of current year as this:

ls -lrt | awk '{if ($6 == "Jan" && $8 != 2010)print $0}'


F.R.
NDO
Super Advisor

Re: awk issue

Thank you for your contributions. Already assign points

F.R.