.........hostname.............this is hostname
.........alias...................alias name
Remark use dot(.) instead of whitespace B'cuz this forum not allow to use more whitespace.
---------------------------------------
I sperate by whitespace not work.
awk 'BEGIN {FS=" "} {print $2}' testfile
Result is
this
alias
When i add more whitespace Ex. " " it not work too.
i need "this is hostname"
Can sperate it by more whitespace(not fixed) and ignore one whitespace?
Thank you in advance