re: 5 Handy Bash Tricks in 2 Minutes VIEW POST

TOP OF THREAD FULL DISCUSSION
re: For point number 2, does it expand to cp /some/path/to/file.txt /some/path/to/file.bak ? If so, shouldn't it be cp /some/path/to/file{.txt...
 

I guess the author wished to only add a suffix, not change the extension itself.

$ echo /some/path/to/file.txt{,.bak}
/some/path/to/file.txt /some/path/to/file.txt.bak
code of conduct - report abuse