Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Get Source Code Line Count

Posted on March 12, 2015October 26, 2015 By David Kittell
(dir -include *.cs,*.asmx, *.asp, *.aspx, *.asax, *.vb -recurse | select-string .).Count
Originally Posted on March 12, 2015
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell

Post navigation

Previous post
Next post

Related Posts

New Line

Posted on March 4, 2013March 10, 2016

Often we forget what code we need to use to create a new line (line break), hopefully this will help. n = CR (Carriage Return) Used as a new line character in Unix r = LF (Line Feed) Used as a new line character in Mac OS nr = CR…

Read More

Check For Valid Date

Posted on February 28, 2013October 26, 2015

Recently I had to validate dates in a form specifically the date of visit and date of birth This function will now check both for future date and do more checks for the date of visit, debug/helper information left in to better understand the function. Function Code: public bool bCheckDate(string…

Read More

MSSQL – Remove Line Breaks

Posted on December 15, 2014October 26, 2015

Sometimes you need to remove line breaks or carriage returns, the code below should help. SELECT REPLACE(REPLACE([VarChar Column], CHAR(13), ‘ ‘), CHAR(10), ‘ ‘) The above script will not work if the column type is TEXT so you must convert it first. SELECT REPLACE(REPLACE(CAST([TEXT Column] AS VarChar(Max)), CHAR(13), ‘ ‘),…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes