• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

how to remove characters at certain column in file

What command can be used to delete the characters on all lines of a file at a certain position?
Like: remove the characters at the 5th position (column) on all lines in file.
There's no delimiter avilable in the file.
(doesn't matter shell, or sed, or perl,...)

Thanks.
0
eszet
Asked:
eszet
1 Solution
 
tfewsterCommented:
cut -c 1-4,6- yourfile > newfilename
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now