On Fri, Mar 05, 2004 at 11:06:02AM -0400, Francisco D�az Soto wrote:

> How to reformat the NBE file in csv???

For results, fields are separated by a pipe symbol so you simply need to
convert that to a coma and wrap fields in quotes.  Here's an awk script
that handles the conversion; there are undoubtedly other methods. 

                       ---- snip, snip, snip ---
BEGIN {
    FS="|"
    OFS=","
}

$1 == "results" {
    for (f=1; f<=NF; f++) {
        $f="\"" $f "\""
    }
    print
}
                       ---- snip, snip, snip ---

Fields are as follows:

    1   always "results"
    2   domain of target
    3   target
    4   port
    5   plugin_id
    6   category
    7   report (newlines encoded as "\n")


George
-- 
[EMAIL PROTECTED]

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to