How can I separate
.sh files into a list?
I have tried:
ls *.sh | xargs sed 's/\n/ /g' > out.txt
The return of
ls *.sh is a long string with '\n' in the middle.
You don't want
will give you want you want: a line with all the .sh files in the current folder.