Search Results

Search: Posts Made By: aixusrsys
1,623
Posted By Don Cragun
So try: awk ' /Application State/ { ...
So try:
awk '
/Application State/ {
c[$0]++
if(length($0) > m)
m = length($0)
}
END { for(i in c)
printf("%-*s : total = %02d\n", m, i, c[i])
}' 1.txt
which with your given sample...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy