Bash doesn’t like filename with spaces

Categories: Linux

So in our loop we use it like a string

for file in *.txt; do mv "$file" /tmp/; done

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.