A blog of (mostly) linux-related tricks I've found in my way
import string text = open(fname).read() print string.count(text, 'the_string')
Post a Comment
No comments:
Post a Comment