#!/bin/bash
if [ -z $1 ]; then
  var=`ls -t1 ~/jetto/bin/linux | head -n 1 | sed 's/_mpi//' | sed 's/_64//'`
else
  var=`ls -t1 ~/jetto/bin/linux | head -n $1 | tail -n 1 | sed 's/_mpi//' | sed 's/_64//'`
fi
#echo ${var/_mpi/}
echo ${var}
