Just a heads up, globbing in your "backup every file" example will miss all dotfiles. You could do a dual expansion in this case for i in * .*; do echo "${i}"; done but this also includes . and .. in this glob. YMMV depending on what you're doing with the list.
Just a heads up, globbing in your "backup every file" example will miss all dotfiles. You could do a dual expansion in this case
for i in * .*; do echo "${i}"; done
but this also includes.
and..
in this glob. YMMV depending on what you're doing with the list.Thanks for the heads up!