<s> __author__ = "<STR_LIT>" <EOL> __email__ = "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> import sys <EOL> def grep_word_from_files ( ) : <EOL> word = sys . argv [ <NUM_LIT:1> ] <EOL> for filename in sys . argv [ <NUM_LIT:2> : ] : <EOL> with open ( filename ) as file : <EOL> for lino , line in enumerate ( file , start = <NUM_LIT:1> ) : <EOL> if word in line : <EOL> print ( "<STR_LIT>" . format ( filename , lino , line . rstrip ( ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> if len ( sys . argv ) < <NUM_LIT:2> : <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> else : <EOL> grep_word_from_files ( ) </s>
