I am trying to use a script to remove the blank spaces from the right side of a line, for every line on the file. It sounds simple and should be, I think. I will post the code below. The problem is that if the file has like 1000 lines in it, it will work great for every line except the very...
Is there a way to write it to the same file, this may be a 300 mb file and I would hate to have to create 2 copies of it just to change a couple characters?
POST 1
Richtoss (IS/IT--Management) Oct 7, 2008
I am struggeling on how to write a simple script. Here is a line of information.
0150000103600000000000000002000000000000000000200001text
information ODD 2000 025252552
000000000000000002000001test email adderss...
The part that I am stuck on is not even the coding yet, but the how too. I can search through the file and find each line that has the beginning text, but how do I tell it to replace the character found at position x with a value that is increasing for each instance that is found.
Richtoss (IS/IT--Management) Oct 7, 2008
I am struggeling on how to write a simple script. Here is a line of information.
0150000103600000000000000002000000000000000000200001text
information ODD 2000 025252552
000000000000000002000001test email...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.