How can i get awk to separate the output with dashes?
A simple awk '{print $1-$2-$3}' does not work.

awk '{print $1 "-" $2 "-" $3}'
$ echo "a b c"|awk '$1=$1' OFS="-"
a-b-c
$ echo "a b c"|awk '{print $1,$3}' OFS="-"
a-c

Got it working, thanks very much, as always :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.