hello,
could someone please explain why the second command doesn't produce the same output?
Must the "-" in my example be always the first on separator list?
Code:
$ echo "aaaa-bbbb cccc dddd.eeee"|awk -F["[red]-[/red]|[blue].[/blue]| "] '{print $1"\n"$2"\n"$3"\n"$4"\n"$5}'
aaaa
bbbb
cccc
dddd
eeee
$ echo "aaaa-bbbb cccc dddd.eeee"|awk -F["[blue].[/blue]|[red]-[/red]| "] '{print $1"\n"$2"\n"$3"\n"$4"\n"$5}'
aaaa-bbbb
cccc
dddd
eeee
$