Get angles and bonds from Pdb and xyz files

I want to extracts bonds and angles from Pdb or XYZ file. Any help please?

What does this question have to do with lammps?

I need to build lammps data file that contains bonds and angle from a pdb or xyz file

I need to build lammps data file that contains bonds and angle from a pdb or
xyz file

that is a *different* question and one that i and others answered many
times recently.
there are several options. you can find discussions on how to build
data files in the LAMMPS documentation and the mailing list archives.

axel.

Can you provide me with the link because what made me send an email is that I’ve spent a whole day trying to find a solution for the problem and i couldn’t.

A link of these discussions I mean

Not without making statements that might be considered offensive. Google is your friend. Axel.