This week I learned a nice trick with brace expansion when using the bash or
zsh shell from a colleague from me. I already used brace expansion in simple
for loops like:
for i in {1..5}
do
echo $i
done
But as he demonstrated, you can also use it in constructs like:
cp file{,.20090206}
Which expands to
cp file file.20090206