I would like to output the list of items in a folder in the folowing way:
\"filename1\" \"filename2\" \"file name with spaces\" \"foldername\" \"folder name wit
for f in *; do printf "'%s' " "$f"; done; echo
Or, thanks to Gordon Davisson:
printf "'%s' " *; echo
The trailing echo is simply to add a newline to the output.
echo