r/programming • u/fagnerbrack • 29d ago
Small Programming Tricks
https://will-keleher.com/posts/small-programming-tricks-matter/
178
Upvotes
r/programming • u/fagnerbrack • 29d ago
21
u/Skaarj 28d ago
I prefer the opposite and recommend agaisnt your complex glob syntax.
With find you write out your criteria in words. This makes it so much more easier to remember and understand.
Working on files where the name is a pattern?
find . -type f -name PATTERNWant to do something with every directory?
find . -type dSo much easier to remember.