Skip to content
Advertisement

mkdir makes wrong directory names when used with cut on *.tex files

When make directories for each file with certain extension:

JavaScript

…everything works just fine. However if I do it for .tex files I get following results:

JavaScript

I just wanted to clean my latex directory and I get weird directory names. Why is that and how to make it work?

Advertisement

Answer

It is error prone to use output from ls like this.

You can use:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement