Question 4
$ head path.txt
SENEESWSESWWNWSSESWSSENESENNWNEEESWSSENESENNWNENNWSWWNENWNEESENEESWS
SENESENNWNEESENEESWSESWWNWSSSENEESWSESWWNWSWWNENNWSWNWSSESWSESWSSENE
SENNWNEESENEESWSESWWNWSSSENEESWSESWWNWSWWNENNWSWNWSSESWWNWSWWNENWNEE
SENNWNENNWSWNWSSESWWWNENNWSWNWSSESWSSENEESWSESWWNWSSESWSSENESENNWNEE
SENEESWSESWWNWSSSENEESWSESWWNWSWWNENNWSWNWSSESWSSENEESWSESWWNWSSESWS
SENESENNWNEEESWSSENESENNWNENNWSWWNENWNEESENESENEESWSESWWNWSSESWSSENE
SENNWNEEESWSSENESENNWNENNWSWWNENWNEESENNWNENNWSWNWSSESWWNWSWWNENWNEE
...