I think some unarmed combat and the knife or other backup weapon is taught to most modern soldiers? But even for special forces, some kind of rifle is usually the primary infantry weapon. IIRC soldiers going into close combat fighting in WWII, clearing houses or trench-fighting, liked to take sub-machine guns and grenades and then entrenching tools/bayonets/knives were the backup weapons.