#!/bin/bash awk -F: ' { for(i=NF;i>0;i--) { if(i>1) printf "%s:",$i else printf "%s\n",$i } }' nowcoder.txt