Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Renaming files with mv without typing the name two times. Parent comment
Heaven forbid someone share knowledge. Let's interpret as uncharitably as possible and passive-aggressively love/hate.
> Brace expansion doesn't do that, doesn't show you the new filename before you commit the name change
Allow me to rush to demonstrate my zsh knowledge for any passersby who might benefit:
% mv foo-bar-{bar,baz}.txt|[TAB]
% mv foo-bar-bar.txt foo-bar-baz.txt
There are no comments on this comment yet.
Heaven forbid someone share knowledge. Let's interpret as uncharitably as possible and passive-aggressively love/hate.
> Brace expansion doesn't do that, doesn't show you the new filename before you commit the name change
Allow me to rush to demonstrate my zsh knowledge for any passersby who might benefit:
% mv foo-bar-{bar,baz}.txt|[TAB]
% mv foo-bar-bar.txt foo-bar-baz.txt