up vote 0 down vote favorite
share [g+] share [fb]
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?

does anyone knows?

link|improve this question
feedback

1 Answer

Why not use: ls -1 *.sh

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.