Skip to content

Instantly share code, notes, and snippets.

@andermoney
andermoney / Vim Find Replace Increment
Last active December 14, 2015 19:58
Vim command to find and replace in a file with an incrementing number. In this case replaces ASN000 with ASN1, ASN2, etc
:let i=1 | g/ASN\d*/ s//\="ASN".i/ | let i+=1
@andermoney
andermoney / Powershell list directories recursively
Created March 12, 2013 03:50
Powershell command to list directory structure recursively
Get-ChildItem . -Recurse | Where-Object {$_.GetType().ToString() -eq "System.IO.DirectoryInfo"} | Select @{Name="Path"; Expression={ $_.FullName } }