I want to essentially be able to use a command similar to dt#
, where the #
represents any numerical character.
My use case is modifying a script where I have a few server instances with long names that I wanted to abbreviate, from:
instance0
instance1
instance2
instance3
to
i0
i1
i2
i3
Is that possible without a regex? It would be useful to have something similar that includes a way to represent any alpha or symbol too.