I recently ran across an article about ‘15 Practical Grep Command Examples In Linux/Unix‘, and thought it would be cool to run through each of the examples, and give the PowerShell equivalent for each one.
(more…)
Month: November 2014
PowerShell and the clipboard
Here are two small clipboard functions for PowerShell. Get-ClipboardText gets the current text in the clipboard while Out-ClipboardText will send text to the clipboard.
(more…)
Add-FormatTable
I was working at a script where I created a custom object, and I wanted to to change the default properties shown when the object where written to the host. Easy enough, right? I have done this before of course, but this time I started thinking if it were possible to have the headings be different when using the default view, as opposed to, let’s say when shown using Format-List.
(more…)
More PowerShell
This is a small function that emulates the behaviour of the old DOS command ‘more’. The only caveat is that it doesn’t work when running under ISE.
(more…)