Showing tag results for text files

Oct 8, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Remove Unwanted Tabs From a Text File?

ScriptingGuy1

Hey, scripting Guy! I have about 5,000 text files that have unwanted tabs at the end of each line. How can I write a script that removes these unwanted tabs?-- TT Note. If this looks – and sounds – a little different than the typical Hey, Scripting Guy! column, well, there’s a good reason for that: that’s because it is a little different th...

Scripting Guy!scripting techniquesVBScript
Oct 1, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Search a Text File for Terms Read In From a Second Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file that has a list of search terms in it. I would like to write a script that can search for each of those terms in a second file, and then report back any of the terms that couldn’t be found in that second file. How do I do that?-- PH Hey, PH. You know, this is a good day for the Scripting Guy who writes this...

Scripting Guy!scripting techniquesVBScript
Sep 28, 2007
Post comments count0
Post likes count0

How Can I Retrieve IP Addresses (and Only IP Addresses) From a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a script that uses Netsh.exe to return information from my DHCP servers; all that information is then written to a text file. That works great, except that I need to be able to parse the data and pull out any IP addresses included in that information. How can I write a script that extracts just the IP addresses from a t...

Scripting Guy!scripting techniquesVBScript
Sep 15, 2007
Post comments count0
Post likes count0

How Can I Extract Text Embedded Between Target Phrases in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I read a text file until I encounter a specified phrase, then write that information to a new text file? I then need to repeat this process, reading the text file to the next instance of the phrase and then writing that information to another new file. And so on.-- EW Hey, EW. You know, this has been a difficult year ...

Scripting Guy!scripting techniquesVBScript
Sep 8, 2007
Post comments count0
Post likes count0

How Can I Remove Any Line in a Text File That Contains a Specified String Value?

ScriptingGuy1

Hey, Scripting Guy! How can I remove any line in a text file that contains the string f0?-- CJ Hey, CJ. Before we begin, we have a question for you: are you by any chance a serious player of online video games like EverQuest or World of Warcraft? Admittedly, none of the Scripting Guys play these games; we still find Pong to be a little over-stim...

Scripting Guy!scripting techniquesVBScript