What type of pipe are we talking about? If all you want to do is cap them, i would take a hacksaw and the correct cap and cap it as close to the supply as i could...
Where are the caps needed? If in a exposed area you could use shark bite caps that just slip onto the pipe. If in a are that will be hidden then use caps that are soldered on.