Hi All
I'm having a bit of a headbanger trying to work this one out. I'm trying to remove all of the characters on a line apart from the last 17. For example, I need to change this:
Code:
00000000000000000089;0bbfaeb8
01000000000000000089;0bcb5948
00000000000000000089;0bcc4c40
0000008A;061b4c10
0000008A;061fb2c8
0000008A;27a67210
0000008A;27b38590
0000008D;27a670d0
0000008D;27b547b8
0000008E;172fb478
0000008E;1734cdc8
0000000000000000000000000000000000000000008F;05f75cb0
0000000000000000746F72730479706520330000008F;05faf640
0000008F;17483e58
0000008F;174d3c28
00000090;176439f0
00000090;17694698
...in to this:
Code:
00000089;0bbfaeb8
00000089;0bcb5948
00000089;0bcc4c40
0000008A;061b4c10
0000008A;061fb2c8
0000008A;27a67210
0000008A;27b38590
0000008D;27a670d0
0000008D;27b547b8
0000008E;172fb478
0000008E;1734cdc8
0000008F;05f75cb0
0000008F;05faf640
0000008F;17483e58
0000008F;174d3c28
00000090;176439f0
00000090;17694698
I don't suppose anyone has any ideas? I was really looking for a syntax like the one for tail, where you can say "all of the bottom of the file apart from the first 2", for example:
Code:
$ tail -n +2 ./file
If anyone has any ideas I'd love to hear them!
Thanks, Simplified