It's kind of a grey area where copyright is concerned.
1. Are the names you intend to use copyrighted? (Probably)
2. You're selling the Ts, so it would be for commercial, not educational purposes.
3. You're making and selling these Ts solely based on the draw of the band name, not parody or any other derivation of the copyrighted material. E.g. a pun or an art design.
Offhand, I'm not a lawyer and this opinion counts for little, but it sounds like copyright infringement. If you want to do this, I'd suggest getting a letter allowing permission for you to use the band names, otherwise I wouldn't risk selling the shirts.