DEV Community

Discussion on: 5 Handy Bash Tricks in 2 Minutes

Collapse
 
kristian profile image
Kristian

In number 3, is moving every file in a folder just an example to illustrate using a for loop? Or is there a reason why you wouldn't do it like this:

mv * ../elsewhere/
Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

Haha, no.

I updated it to a more legitimate use. I didn't actually want to use the example of making backups twice in a row, but the moving example didn't make sense. 🙃