Clay Davis wrote: > I am using wget to ftp download several of the SARE rules on a weekly > basis. When I look at the rule on the SARE site, its formatting looks > normal (spaces, tabs, indents, etc.); however, after an ftp download > to my PC and opening it in Notepad, its all run together and all the > formatting is gone. Is this a result of ASCII vs binary? Am I > fouling SA up?
It's a fundamental difference in how text files are stored on Windows versus Unix systems. In Unix/Linux, the "end of line" character is LF (ASCII 10). In Windows, "end of line" is marked with CR (ASCII 13) followed by LF. So, when you load up a Unix/Linux text file in Notepad, the LFs are there but not the CRs, and so Notepad doesn't think the line has ended. Text editors that are better than Notepad ( most of them are, I like Crimson Editor[1]) handle this fine. Is it fouling up SA? If you've got SA running under linux, probably not, since the files are in linux-friendly form. If you want to check, use 'cat' to display the contents of the file on the linux machine. If it looks fine, then SA should be reading it properly. [1] http://www.crimsoneditor.com/