# Edited in-place perl -i -lpe 'substr $_, 0, 9, ""' file # Edited in-place with back-up perl -i.bak -lpe 'substr $_, 0, 9, ""' file