Cross-platform grep