#!/bin/bash # Create input files list in XML format # by protopop@cern.ch - Sep 2013 # # Takes as argument the data path if [ $# -ne 2 ] then echo echo "Usage: `basename $0` DATA_PATH LIST_FILE" echo exit 65 fi mysteer="$2" flist=`ls $1/*.slcio` lines="" for x in $flist do lines="$lines $x" done echo "$lines" > $mysteer cat $mysteer echo echo "The newly created LCIOInputFiles list is in $mysteer." echo "Bye!"