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.
#!/bin/awk -f
{
if ( FNR == 1 ) {
# first record contains the dimensions
rows = $1
cols = $2
} else {
# all other lines are the information
data[FNR-1] = $0
}
}
END {
print "Dimensions are", rows, cols
print "Letter at[2][3] is", substr(data[2],3,1)
}
awk -f prog.awk file.txt