Hello all,
I need little help.
I have a flat file called test.dat with 4 lines in it:
fddkdjfdkdkfkdf
ddd
fddkdjfdkdkfkdf
ddddd
when I run awk -F: '{ print length() }' test.dat | uniq -c
the result show:
1 15
1 3
1 5
What I really want is if the line have the length increment the count. The result should look like
2 15
1 3
1 5
where in the
awk -F: '{ print length() }' test.dat | sort -u
I should add the count to produce the result that I want
I need little help.
I have a flat file called test.dat with 4 lines in it:
fddkdjfdkdkfkdf
ddd
fddkdjfdkdkfkdf
ddddd
when I run awk -F: '{ print length() }' test.dat | uniq -c
the result show:
1 15
1 3
1 5
What I really want is if the line have the length increment the count. The result should look like
2 15
1 3
1 5
where in the
awk -F: '{ print length() }' test.dat | sort -u
I should add the count to produce the result that I want