Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/awk –f
- BEGIN {
- arr[10]
- for ( i=0; i<10; i++ )
- arr[i]=0
- }
- {
- if (arr[0]<$10)
- arr[0]=$10
- }
- END {
- for ( i=0; i<10; i++ )
- printf arr[i]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement