How to grep *.info;mail.none;authpriv.none;cron.none; in /etc/syslog.conf
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to grep *.info;mail.none;authpriv.none;cron.none; in /etc/syslog.conf
Hi,
I want to grep *.info;mail.none;authpriv.none;cron.none; this complete string in /etc/syslog.conf.
I tried with quotes and backslashes but nothing comes out.
Now it looks my question ,I copied ur content.
Here what I suspect because of ; , it is not working.
Amaze to see it is working in my some server.
I need some standard method. I checked with awk as well but it did nt work, I need this for my script.
What the hack is it. Ok I m checking now bash version and OS also.
Now it looks my question ,I copied ur content.
Here what I suspect because of ; , it is not working.
Amaze to see it is working in my some server.
I need some standard method. I checked with awk as well but it did nt work, I need this for my script.
What the hack is it. Ok I m checking now bash version and OS also.
bash-2.05b-41.7 -- It is working in this bash
bash-3.2-24.el5 -- not Working
bash-3.0-27.el4 -- not working
Need some same output from you guys.
let me know what is ur bash version. in 3.X package it has problem
Honestly, I use zsh. I did however try in bash, and it worked for me.
Code:
[root@ltp01 ~]# bash --version
GNU bash, version 4.2.10(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@ltp01 ~]# zsh --version
zsh 4.3.15 (x86_64-redhat-linux-gnu)
[root@ltp01 ~]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.