How can I separate .sh files into a list?
.sh
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.
ls *.sh
You can try to use:
ls -1 *.sh
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
3 years ago
viewed
204 times
active
11 months ago