#!/bin/bash sel=$1 for filename in /disk/users/elena/B2KShh/ntuples/jobs/*.root do echo "Running selection " ${sel} " on " $(basename "$filename") python selection.py $(basename "$filename") ${sel} done