| I l@ve RuBoard |
|
14.13 The grep ModuleThe grep module provides different ways to search for text in text files, as Example 14-16 shows. Example 14-16. Using the grep Module
File: grep-example-1.py
import grep
import glob
grep.grep("\<rather\>", glob.glob("samples/*.txt"))
# 4: indentation, rather than delimiters, might become
|
| I l@ve RuBoard |
|