POSIX Shell Programming Challenge - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
Came up with something really horrible looking before remembering that wsl of course uses bash, which makes me disqualifed. Like mort's example, this also breaks with empty directories. I will certainly be returning to this challenge later..
Code: ~ $ for i in test/{*,.*[^..]}; do echo $i; done |
|||