corrected to use FS

This commit is contained in:
sejo 2021-12-09 00:06:03 -06:00
parent dba1db32e1
commit c8fcc5cd13
2 changed files with 6 additions and 6 deletions

View File

@ -2,9 +2,9 @@ BEGIN{
FS = ""
}
{
n = length($0)
for(i=1;i<=length($0);i++){
h[NR,i] = substr($0,i,1)
n = NF
for(i=1;i<=NF;i++){
h[NR,i] = $i
}
}
END {

View File

@ -2,9 +2,9 @@ BEGIN{
FS = ""
}
{
n = length($0)
for(i=1;i<=length($0);i++){
h[NR,i] = substr($0,i,1)
n = NF
for(i=1;i<=NF;i++){
h[NR,i] = $i
}
}
END {