Neat little regex trick

— 1 minute read

\A matches the beginning of a file. You can use this to add text like a header to multiple files at once. Likewise, \Z matches the end of a file.