#!/bin/bash #usage: compare_bom sch_bom pcb_xy cut -f 1 "$1" |sort > bom_sch cut -d, -f1 "$2" |sort > bom_pcb diff bom_sch bom_pcb