Nee to find command to generate output exactly as if ls -p would generate?
With find /path/to/ -mindepth 1 -maxdepth 1 -exec basename {} \; the directories don't have trailing slash.. i need the output folder names to have trailing slash
sample output:
folder 1/ my-file-1.sh find command to list directory contents without full path and folders with a trailing slash