Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/Harold/ { print $0 }
/Harold/ { print }
/Harold/
/bogus/ { print "Skipping invalid line."
next }
/Harold/
/Harold/ && !/bogus/
/Harold.*genuine/
/Harold\.\*/
[Hh]arold
/[0-9]/
/[^0-9]/
/^[0-9]+$/
for (i=2; i<=10; i+=2)
print i
for (i=1; i<6; i++)
{ print i
if ( i % 2 )
print " odd"
}
info["Tom"] = "A workaholic."
info[1] = "Indexed by '1'."
print info["1"]
[b]Indexed by '1'.[/b]
info["year"] = 2005
for (i in info)
print i "-->" info[i]
[b]Tom-->A workaholic.
year-->2005
1-->Indexed by '1'.[/b]
# Produces array of nonmatching and matching substrings.
# The size of the array will always be an odd number.
# The first and the last item will always be nonmatching.
function shatter( s, array, re )
{ gsub( re, "\1&\1", s )
return split( s, array, "\1" )
}