RSS

PowerShell – Easy Line Numbers using Cat (Get-Content)

Thu, Oct 8, 2009

Consumer Electronics

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)

, , , , , , , , , , , , , ,

This post was written by:

- who has written 47402 posts on Online Electronics Store -Today’s Bargain Electronics Store.


Contact the author

Leave a Reply