I was in a deep directory tree, and I wanted to CD into the same relation location in another tree (another parallel TFS workspace as it happens):

cd ($pwd -replace ‘ITS_Spare’,'ITS’)

Ah, bliss[1]

 

[1] In a deeply sad and nerdy way, admittedly


Check it out:Cup(Of T)