#!/bin/bash # Make sure to chmod +x remove_header.sh ag 'Created (?=by)' -l | while read file do sed -i .bak '1,17d' $file rm "$file.bak" done