Tail Last Modified File in a Directory
How would one tail the last modified log file within a directory with a single command that does not change? 'ls -t1 | head -1 | tail -f' just gives me an error.
There are new log files being created for each job I have running. It would be nice to have a single command to tail the last log file without typing the tedious name every time.
Thanks,
Tim
|