Thanks, all of you! I ended up going with PHV's solution, and it worked perfectly! For whatever reason, I couldn't wrap my head around the other answers.
Now I'm going to try and make it write this to an Excel spreadsheet instead of a text file, but I won't bother you all unless/until I get...
I'm trying to grab the first 6 characters of the first line in a text file, but only if that line does NOT have a certain character in column 42. Below are the first couple of lines of text from that file. My script needs to skip line 1 in this case because it contains a minus in column 42...
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.