Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
aabbcc1241
8y ago
0 comments
Share
ls -Q
this will quote the file name for pipe operation
0 comments
default
newest
oldest
LambdaComplex
8y ago
Still doesn't work.
touch 'file with spaces' for file in $(ls -Q); do echo "$file"; done
This prints:
"file with spaces"
j
/
k
navigate · click thread line to collapse