I want to reuse the parameter I give to a shell command as an argument, e.g.
>sed 's/old/new/g' inputfile > $?.outputsuffix
so that the result of sed
is streamed to a file called "inputfile.outputsuffix".
I want a feature which works interactively at the Bash command line, not inside a script. Is such a thing available?