I am beginning to learn awk
and came across something that when I run the following commands
$ echo ":a:b:c:" | awk '$1=$1' FS=":" OFS="$"
$ echo "a:b:c:" | awk '$1=$1' FS=":" OFS="$"
a$b$c$
First command returns nothing, but I expected it to return $a$b$c$
, similar to the second command. And in general, it never prints anything when the field separator is at the beginning of the line. Why so?