selective batch copying
I'm trying to get linux to copy 3 files:
test-2.6.1.txt test-2.6.2.txt & test-2.6.4.txt
test-2.6.1.txt test-2.6.2.txt test-2.6.3.txt & test-2.6.4.txt
to a directory (say ./to_backup)
as quickly (efficient in terms of keystrokes)
I was thinking something like:
for f in ./test-2.6.?.txt; do if [ $f != "test-2.6.3" ]; then cp $f ./to_backup fi; done
but that doesn't work telling me that "done" is not expected.
Any idea on what would work, not necessarily like that, but definitely in the console?