<s> import os <EOL> import re <EOL> import sys <EOL> folderPath = str ( sys . argv ( [ <NUM_LIT:1> ] ) ) <EOL> outputFolder = str ( sys . argv ( [ <NUM_LIT:2> ] ) ) <EOL> directoryFiles = os . listdir ( folderPath ) <EOL> for filePath in directoryFiles : <EOL> file = open ( folderPath + "<STR_LIT:/>" + filePath , '<STR_LIT:r>' ) <EOL> match = re . search ( r'<STR_LIT>' , file . read ( ) ) <EOL> if match : <EOL> print match . group ( <NUM_LIT:1> ) <EOL> with open ( outputFolder , "<STR_LIT:a>" ) as appendlinks : <EOL> appendlinks . write ( match . group ( <NUM_LIT:1> ) + "<STR_LIT:\n>" ) </s>
