Hi guys
here's my code
let's say the flag file is 7
The result is BATCH_ 7
I want the result is BATCH_7
I have the way like this but I don't like it
NUMBER=`ls Run_*.flag | wc -l | awk '{print $1}'`
I was just wondering using eval or something which is more proper...
Thanks guys
here's my code
Code:
NUMBER=`ls Run_*.flag | wc -l`
echo "BATCH_$NUMBER"
let's say the flag file is 7
The result is BATCH_ 7
I want the result is BATCH_7
I have the way like this but I don't like it
NUMBER=`ls Run_*.flag | wc -l | awk '{print $1}'`
I was just wondering using eval or something which is more proper...
Thanks guys