in reply to How do I delete the first 9 characters of each line in a file
perl -lpe 'substr $_, 0, 9, ""' file perl -lpe '$_ = substr $_, 9' file
If you want to edit the file in-place you can add the -i switch:
# Edited in-place perl -i -lpe 'substr $_, 0, 9, ""' file # Edited in-place with back-up perl -i.bak -lpe 'substr $_, 0, 9, ""' file
|
|---|