(infile, outfile, line)
Function use to prepend lines using bash utilities in Linux. 
	(source: http://stackoverflow.com/a/10850588/610569)
Function use to prepend lines using bash utilities in Linux. 
	(source: http://stackoverflow.com/a/10850588/610569)
Function use to prepend lines using bash utilities in Linux . ( source : http : // stackoverflow . com / a / 10850588 / 610569 )
def prepend_line(infile, outfile, line):
	""" 
	Function use to prepend lines using bash utilities in Linux. 
	(source: http://stackoverflow.com/a/10850588/610569)
	"""
	with open(infile, 'r') as old:
		with open(outfile, 'w') as new:
			new.write(str(line) + "\n")
			shutil.copyfileobj(old, new)
def prepend_line ( infile , outfile , line ) : with open ( infile , 'r' ) as old : with open ( outfile , 'w' ) as new : new . write ( str ( line ) + "\n" ) shutil . copyfileobj ( old , new )