Tail and wildcard characters
- by Mitch
I want to get the last 10 lines of multiple files. I know they all end with "-access_log". So I tried:
tail -10 *-access_log
But this gives me an error, where as:
tail -10 file-*
Gives me the output I'd expect. I would think this probably has more to do with BASH then tail. However commands like:
cat *-access_log
Work fine.
Any suggestions?