Returns a list with the last line of a file. The number of lines should be indicated in the attribute lines.
 

1 file.tail

<file.tail lines='lines'>
    <file /> !
</file.tail>
Example

Get the last 10 lines of a file.

Copy
<xsql-script name='file_tail_sample1'>
    <body>

        <set name='arr'>
            <file.tail lines='10'>
                <file  name='#m_srcfile' type='absolute' />
            </file.tail>
        </set>

        <println>
            <arr/>
        </println>

        <iterator name='line' index='idx'>
            <in>
                <arr/>
            </in>
            <do>
                <println><idx/>: <line /></println>
            </do>
        </iterator>

    </body>
</xsql-script>