I often cat out code pages from the prompt when I simply want to see what’s inside or look for a method. Cat, of course, is an alias to PowerShell’s get-content cmdlet, but cat brings me back to days in Unix and makes me feel better. One thing that was a bit of a trouble was looking for a specific line of code. For example: Looking through the debug logs, I see an error occuring at line 40 of some file. That’s great, but who wants to count lines? Instead, we open up Visual Studio an
More:
PowerShell – Easy Line Numbers using Cat (Get-Content)

Leave a Reply