How to redirect errors to a specific file in Unix

Hello there,

Sometimes we have to check for Errors in the DSSerrors.log and the log is huge. To help you with this task, we can execute a simple command that will redirect the Errors to a specific file. To do that in Unix, you just have to:

cat ../log/DSSErrors.log | grep “Error” >> /folder/filename

So, right after the CAT, you have to specify where is the DSSErrors.log and right after the >> the folder and the filename that you want to use to store the errors.

Hope it helps.

God bless you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.