I was watching the samurai movie "The Hidden Blade" the other day and in one of the scenes, right before the hero has to fight a sword-battle, he prepares his sword by sticking it into a pile of what looks like sand or maybe gravel. He sticks it into the gravel a few times then wipes it clean.
What exactly is he doing?