awk print first character code example Example: awk print first characters of a field awk '{print substr($1,1,1)}'