I'm trying to split a string of this kind :
file1 -> file2
and expect to affect "file1" and "file2" to 2 variables.
I tried with IFS but it seems to work only for one character long (with IFS=" -> " I get "file1" and "> file2"...
Based on this article, I tried another approach :
awk 'BEGIN {FS=" -> "} {xxx}' <<< $f
The issue is that I don't succeed to affect $1 and $2 to a variable that I could use later...