awk length of text in column code example
Example: awk length of text in column
# Basic syntax:
awk '{ print length($column) }' input_file
# Example usage:
# Say your input_file contains the following fields:
12 this
578 is
42 a
23 string
# Running:
awk '{ print length($2) }' input_file
# Would return:
4
2
1
6