| Command | Description |
|---|---|
rg pattern |
Search pattern in current dir recursively |
rg pattern utils.py |
Search in a single file utils.py |
rg pattern src/ |
Search in dir src/ recursively |
rg '^We' test.txt |
Regex searching support (lines starting with We) |
rg -F '(test)' |
Search literally, i.e., without using regular expression |
rg -i pattern |
Search pattern and ignore case (case-insensitive search) |
rg -S pattern |
Smart case search (match case of pattern) |
rg pattern -g '*.py' |
File globbing (search in certain files), can be used multiple times |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ScriptBlock = | |
| { | |
| Param([int]$RunNumber) | |
| $filename = Join-Path ([IO.Path]::GetTempPath()) "powershell-$RunNumber.doc" | |
| 'Opening Word ...' | |
| $oWord = New-Object -Com Word.Application | |
| $oWord.Visible = $true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -RunAsAdministrator | |
| # .\Setup-Windows11-VM.ps1 -VMName 'W11' -SwitchName 'Default Switch' -ISOFile 'C:\Users\jeffmill\Downloads\ISO\Windows 11 - Version 22H2.iso' -VMPath 'E:\VM' | |
| Param( | |
| # Virtual Machine Name | |
| [Parameter(Mandatory = $true)][string]$VMName, | |
| # Virtual Switch to be used - see Get-VMSwitch | |
| [Parameter(Mandatory = $true)][string]$SwitchName, | |
| # Full path for the install media (ISO file) |
Fast on Linux and Windows, and supports 3-way merging! Diffinity and Meld are a couple of other viable options.
winget install KDE.KDiff3OlderNewer