The command below executes :command on every line from the one containing the f manual mark to the one containing the t manual mark:
:'f,'tcommand
Automatic marks can be used too:
:'<,'>command " covers the visual selection
:'{,'}command " covers the current paragraph
:'[,']command " covers the last changed text
See :help mark-motions.