Print

Print


Hi John,

I just tested this myself and it seems to work:

diff <(tail -n +2 file1.txt) <(tail -n +2 file2.txt)

Source:
http://stackoverflow.com/questions/14558418/compare-two-files-in-linux-ignoring-first-and-last-lines

Hope this helps,
-Vaikunth

On Mon, Apr 27, 2015 at 4:02 PM, John Gates <[log in to unmask]>
wrote:

> Hi,
>
> I've got a simple integration test and I'm looking for a method to skip
> the first line of output when doing the diff. The 2 files are identical
> except for the first line with the column names
>
> qserv output: scienceCcdExposureId    QS1_PASS
> mysql output: scienceCcdExposureId    hex(poly)
>
> Is there a fairly simple way to do this?
>
> -John
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the QSERV-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1