Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

"tail -f" to multiple greps, redirect output to file?

Avatar of nortonloaf
nortonloaf asked on
System Programming
15 Comments1 Solution2543 ViewsLast Modified:
I'm trying to tail a log file, and pull out meaningful lines to save in
a different file.  This command does what I want:

tail -f log.file | grep '^\|' | grep "stockA\|stockB\|stockC\|stockD" | grep -v "DEBUG\|INFO\|WARN"

but when I add to the end of it:  >> goodlog.file

i find that no data is written to goodlog.file.

Any help would be greatly appreciated.
Avatar of JJSmith
JJSmithFlag of United Kingdom of Great Britain and Northern Ireland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers