instead of sourcing and using the functions directly now it is also possible
to use the functions like this:
$ALICE_ROOT/PWGPP/scripts/utilities.sh functionName args
it makes debugging easier, e.g.
bashdb $ALICE_ROOT/PWGPP/scripts/utilities.sh guessRunNumber
000123123
+#!/bin/bash
#library of useful PWGPP related bash functions
#it REQUIRES BASH 4 !!!!
#blame: Mikolaj Krzewicki, mkrzewic@cern.ch
return 1
)
+#this makes debugging easier:
+#executes the command given as an argument in this environment
+#use case:
+# bashdb utilities.sh summarizeLogs * */*
+[[ $# != 0 ]] && eval "$@"