Is there any way of taking a command, sending
A B C B B C B
and replacing every instance of B in the command with -B-?
I'm trying to make an alias to automatically insert ANSI into anything between "", rather than making a seperate alias for A "B", "B", A "B" C "B" and so on.
A B C B B C B
and replacing every instance of B in the command with -B-?
I'm trying to make an alias to automatically insert ANSI into anything between "", rather than making a seperate alias for A "B", "B", A "B" C "B" and so on.