(get-childitem -recurse -include *.java | select-string -pattern PrepareStatement | foreach {$_.line}).Count
I developed this fairly quickly to count the occurrences of "PrepareStatement" in *.java in all sub-directories. Worked like a charm. Just in case it does you any good :-)
Subscribe to:
Posts (Atom)
Get Restart log using PowerShell
I'm often curious about a restart on a Windows server system. An easy way to get a list of the restart and what initiated it is to use t...
-
Most of what we're going to want to look at when you're having production issues are available through DMV's. If granti...
-
BibleGateway.com - Passage Lookup: John 10:7, 9-10 9I am the gate; whoever enters through me will be saved.[a] He will come in and go out, a...
-
NOTE: These instruction apply to the connections, reports, menus, etc in Oracle SQL Developer. If you are looking to change the font of you...