Last active
September 4, 2018 05:51
-
-
Save jf-parent/e27c3b14dcc5a1ba551700243bac081f to your computer and use it in GitHub Desktop.
END { print NR }
NR == 10
{ print $NF }
{ field = $NF}
END { print field }
NF > 4
$NF > 4
{ nf = nf + NF }
END { print nf }
/Beth/ { nlines = nlines + 1 }
END { print nlines }
$1 > max { max = $1; maxline = $0 }
END { print max, maxline }
NF > 0
length($0) > 80
{ print NF, $0 }
{ print $2, $1 }
{ temp = $1; $1 = $2; $2 = temp; print }
{ $1 = NR; print }
{ $2 = ""; print }
{for (i = NF; i > 0; i = i - 1) printf("%s " $i)
printf ( "\n" )
}
{ sum= 0
for (i = 1; i <= NF; i = i + 1) sum = sum + $i
print sum
}
{ for (i = 1; i <= NF; i = i + 1) sum= sum+ $i }
END { print sum }
{
for (i = 1; i <= NF; i = i + 1) if ($i < 0) $i = -$i
print
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USSR 8649 275 Asia | |
Canada 3852 25 North America | |
China 3705 1032 Asia | |
USA 3615 237 North America | |
Brazil 3286 134 South America | |
India 1267 746 Asia | |
Mexico 762 78 North America | |
France 211 55 Europe | |
Japan 144 120 Asia | |
Germany 96 61 Europe | |
England 94 56 Europe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment