The invention relates to the technical field of anastomats, and discloses a linear anastomat with a secondary nail output function, which comprises a gun shell, a nail bin, a blade, a nail anvil, a limiting block and a knife groove, the nail bin is connected with a firing device, the blade is fixed on one side of the nail bin, the knife groove is fixed on one side of the nail anvil corresponding to the blade, the nail anvil and the nail bin are both located at two ends of the limiting block, a percussion device is arranged in the gun shell, a secondary nail supplementing mechanism is arranged in the nail bin, a nail pushing plate is arranged on the side, close to the nail bin, of the secondary nail supplementing mechanism, a plurality of nail pushing arc-shaped plates are fixedly arranged on the side, close to the secondary nail supplementing mechanism, of the nail pushing plate, and a nail pushing rod is fixedly arranged between the arc-shaped nail pushing plate and the nail pushing plate. A connecting rod is fixedly arranged in the middle of the arc-shaped nail pushing plate, a first pushing rod is fixedly arranged in the middle of the nail pushing plate, and the first pushing rod is sleeved with a second pushing rod. The anastomat has the secondary nail discharging function, the time for replacing a nail bin is saved, and the operation efficiency is improved.