You have to use external filter.
1. Command -> External Filter (C-x !)
2. type your filter query (ie. ls <pattern>*)