1 2 3 4 5 6 7 8 9 10
#!/bin/bash echo "Ye find yeself in yon $(pwd)." echo echo "Ye see:" find -L . -maxdepth 1 \! -iname '.*' -type f | sed 's,^./, ,' echo echo "Obvious exits are:" echo " .." find -L . -maxdepth 1 \! -iname '.*' -type d | sed 's,^./, ,'