There are a variety of ways to get rid of the trailing "\" and the newline using Unix filter tools. My choice would probably be the "tr" command, as it's probably the most compact. You could also use sed, awk or perl.
On FreeBSD, the tr version which would delete carriage returns, newlines and backslashes might look like: % cat ipf.rules | tr -d "\r\n\\" > ipf.joinedlines ..chris > -----Original Message----- > [mailto:[EMAIL PROTECTED] Behalf Of Michael T. Davis > I'll be the first to admit I'm not an UNIX guru. For readability, > we'd like to format our IPF rules file so that, for files longer than would > normally fit on the screen, we'd use line continuation characters to "wrap" > the lines, e.g.: > > ...a very long line that is \ > continued on one \ > or more lines > > Is there a filter (using Perl, awk, etc.) that could be applied to the rules > file which would allow IPF to accept it (i.e. join the continued lines)?
