Hi,
I see that `compgen -f` shows not only files but also directories and
fifo. Is there a way to just show files? Thanks.
$ tmpdir=$(mktemp -d)
$ touch "$tmpdir/file"
$ mkdir -p "$tmpdir/dir"
$ mkfifo "$tmpdir/fifo"
$ compgen -f "$tmpdir/"
/tmp/mktemp/tmp.VKUlwuaRfB/file
/tmp/mktemp/tmp.VKUlwuaRfB/dir
/tmp/mktemp/tmp.VKUlwuaRfB/fifo
--
Regards,
Peng