#!/bin/bash #run as ./flip *.mrc #flip all the images 180 degree vertically for i in "$@" # fir each image files do proc2d $i $i inplace flip #flip the file and replace the original file done