Create directories from textfile

I have a text file named checklog.txt. I want to create directories from that names in the text file line by line.

1 Answer

cat checklog.txt | xargs -L 1 mkdir

Worked for me.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like