Showing tag results for text files

Feb 28, 2007
Post comments count0
Post likes count0

How Can I Tally Up All the Words Found in a Text File?

ScriptingGuy1

Hey, Scripting Guy! While browsing the Internet I found a script that showed me how to get a list of all the unique words in a text file. That’s useful, but I’d like to go one step further: how can I determine the number of times each of those words occurs??-- TZ Hey, TZ. As it turns out, that’s a lot easier than you might think. In fact, all yo...

Scripting Guy!scripting techniquesVBScript
Feb 17, 2007
Post comments count0
Post likes count0

How Can I Insert Text Into a “Bookmark” in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I saw your article about inserting text into a Microsoft Word bookmark. How can I do the same sort of thing in a text file?-- LR Hey, LR. You’ll have to forgive the Scripting Guy who writes this column if he seems a little less enthusiastic today than usual. As it turns out, he happened to see a commercial on TV right before ...

Scripting Guy!scripting techniquesVBScript
Jan 17, 2007
Post comments count0
Post likes count0

How Can I Delete Just the IP Addresses From Each Line in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a file that has IP addresses and server names on each line. How can I delete the IP addresses, leaving just the server names?-- RR Hey, RR. In case you’re wondering, as we’re writing today’s column temperatures are still right around freezing and there’s still snow and ice everywhere you look. Admittedly, many of you a...

Scripting Guy!scripting techniquesVBScript
Jan 11, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Take Action Based on the First Line of a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I read the first line of every file in a folder and then move each file if the line contains thisdomain.com or thatdomain.com?-- AZ Hey, AZ. We’ll get to your question in a moment. However, before we do that we have something important to say: flight of cheeses. OK, we can go on now. Thanks for waiting. What&rsq...

Scripting Guy!scripting techniquesVBScript
Jan 4, 2007
Post comments count0
Post likes count0

How Can I Number the Lines in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I number the lines in a text file?-- AS Hey, AS. You know, after being on vacation for three weeks the Scripting Guy who writes this column has a lot of catching up to do. In turn, that means that you have a lot of catching up to do. For example, did you know that the Seattle area experienced a huge power outage short...

Scripting Guy!scripting techniquesVBScript