With the -sr option rabin2 produces a radare2 script instead. It can later be passed to the core to automatically flag all symbols and to define corresponding byte ranges as functions and data blocks.

    1. $ rabin2 -sr /bin/ls | head
    2. fs symbols
    3. f sym.stderr 8 0x0021f620
    4. f sym.obstack_begin_1 21 0x00014f90
    5. f sym.optarg 8 0x0021f5f8
    6. f sym.stdout 8 0x0021f5e8