Advertisement
apachee

Add # LuL to every file recursively

Jun 18th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. [
  2.     (lambda text: open(file, 'w').write(text))('# LuL\n' + open(file).read())
  3.     for (dirpath, dirnames, filenames) in __import__('os').walk(".")
  4.     for file in
  5.         [__import__('os').path.join(dirpath, f) for f in filenames]
  6. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement