DEV Community

loading...

Discussion on: 5 Handy Bash Tricks in 2 Minutes

Collapse
learnbyexample profile image
Sundeep

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