Tail and wildcard characters
Posted
by Mitch
on Server Fault
See other posts from Server Fault
or by Mitch
Published on 2010-04-30T17:17:49Z
Indexed on
2010/04/30
17:28 UTC
Read the original article
Hit count: 194
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?
© Server Fault or respective owner