ls *.sh | xargs sed 's/\n/ /g' > out.txt
the return of ls *.sh is a long string with '\n' in the middle, how can i separate these .sh files into a list?
ls *.sh
does anyone knows?
Why not use: ls -1 *.sh
ls -1 *.sh
This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.
about » faq » meta »
tagged
asked
1 year ago
viewed
106 times
active