3 ms·
ls | ? name -eq old ls | ? Name -match '^old$' Any other /property/ of the file (datetime fileds, name, extension, path) can be matched woth a string repr
by justsomehnguy 5y ago
ls | ? name -eq old
ls | ? Name -match '^old$'
Any other /property/ of the file (datetime fileds, name, extension, path) can be matched woth a string representation or an object methods.
But yes, this isn't Python.