Is there any simple single line command to count character in awk? I want some thing like =len(A1) in excel.
input data:
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
I need output like this
AAAAGCTGGGTTGAGAGGGCGA 18
AAAAGCTGGGTTGAGAGGGCGA 18
so on....
Then I want to print $1 if $2>15
Thanks as usual,
Dereje
input data:
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
AAAAGCTGGGTTGAGAGGGCGA
I need output like this
AAAAGCTGGGTTGAGAGGGCGA 18
AAAAGCTGGGTTGAGAGGGCGA 18
so on....
Then I want to print $1 if $2>15
Thanks as usual,
Dereje