Hi,
I have a .txt and I need to delete the characters betwwen the 10th and 20th...
How can I do that...
I need to do somethink like these:
%s/I don't know how to define a range between 10th and 20th character//g
Can you help me...
If I want the 10 first characters i do this:
%s/..........^//g
Thank you very much
Regards,
Nuno Oliveira
will this work for you? You may need to adjust 200 to whatever your maximum line length is.
cut -c1-9,21-200 data.txt
There's no need to adjust anything; just leave out the last parameter:
cut -c1-9,21- data.txt