Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Tell Whether a Phrase Occurs At Least Twice in a Text File?

(image) Hey, Scripting Guy! How can I tell whether or not the phrase 226 transfer complete occurs at least twice in a text file?-- JR(image) (image) (image) Hey, JR. You know, this was a tough one for us to answer; that’s because the Scripting Guys are always content with just one of everything. Take the Scripting Guy who writes this ...

How Can I Insert Text Into a Specific Column of a Text File?

(image) Hey, Scripting Guy! How can I insert text into a specific column of a text file? I don’t want the text to be inserted at the beginning of a line or at the end of a line, but at a specific spot in the line.-- D(image) (image) (image) Hey, D. You know, over the past two years we’ve answered a lot of questions about text files, ...