|
|
|
|
|
by inopinatus
2093 days ago
|
|
find(1) is super useful for any hierarchical or filtering case, and I use it often, but it can also be arcane and unwieldy. In many circumstances your cwd shell iterator can be simpler: for fname in *; do echo "$fname"; done
This skips dotfiles, of course, but that’s intentional. The point of dotfiles is to be skipped.With bash or on GNU systems try printf "%q\n" "$fname"
instead of echo, to obtain an escaped string. |
|