I have installed bedtools on my Mac via home-brew. how do I convert bam to bed files through the terminal.
After installing comes reading the manual. What have you tried?
What you are asking is generally a bit strange and might be an XY problem. If you have a specific goal you might state this http://xyproblem.info/