DEV Community

Discussion on: 5 Handy Bash Tricks in 2 Minutes

Collapse
 
nickhuanca profile image
Nick Huanca

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.

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

Thanks for the heads up!