I'm trying to do something like this.
(1) grep certain pattern from files, and print out the files which match the pattern
(2) sort the filename according to modified date
(1) $result = `grep -rl 'MYPATTERN' *`
(2) sorry... can anyone tells me how to sort this?
I've tried with grep -rl 'MYPATTERN' * | ls -tr but still it doesn't work
