Plan 9 from Bell Labs’s /sources/patch/sorry/mkdirlist/mkdirlist.orig
#!/bin/rc for(i in $*) if(~ $i */*) echo $i