$ grep . *

If you have a bunch of small files that you want to cat to read, you can cat each alone (boring); do a cat *, and you won’t see what line is for what file, or do a grep . *. “.” will match any string and grep in multifile mode will place a $filename: before each matched line. It works recursively too!!

View this command to comment, vote or add to favourites
View all commands by theist

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: