According to a Wikipedia article, a few Confederates at Shiloh were armed with pikes.
“On the eve of battle, Grant's and Johnston's armies were of comparable size, but the Confederates were poorly armed with antique weapons, including shotguns, hunting rifles, pistols, flintlock muskets, and even a few
pikes; however, some regiments, such as the 6th and 7th Kentucky Infantry, had
Enfield rifles.
[31] The troops approached the battle with very little combat experience; Braxton Bragg's men from Pensacola and Mobile were the best trained. Grant's army included 32 out of 62 infantry regiments who had combat experience at Fort Donelson. One half of his artillery batteries and most of his cavalry were also combat veterans.
[32]”