Bash Session
Bash

Bash: spaces turn into newlines on for loops

Have you ever tried to loop through a set of items in a for loop in bash just to discover that bash turns spaces into newlines making your script to break? Well, if you are in a hurry, use this before starting the for loop and come back afterwards for an explanation of what happened there: export IFS=$’\n’; Your final result might look like…

Continue Reading