I want to run less -F
command on latest updated log file of one binary (which creates logs with names which start with xtest*
) which is in logs directory.
I was able to create below alias in csh
, but as I am not expert in aliases I I think I can improve this.
find $LOG/tr/`date +"%Y%m%d"` -name xtest\* -print | xargs ls -rt | tail -1 | xargs less -F