Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: remove lines matching list of strings

by rootcho (Pilgrim)
on Nov 08, 2012 at 22:51 UTC ( #1003014=note: print w/replies, xml ) Need Help??

in reply to Re: remove lines matching list of strings
in thread remove lines matching list of strings

Yes, I was thinking in the same line... if done in perl using hash seem to be better than building giant regex.
Heh...didn't know about -F option.. will check it out
  • Comment on Re^2: remove lines matching list of strings

Replies are listed 'Best First'.
Re^3: remove lines matching list of strings
by TomDLux (Vicar) on Nov 09, 2012 at 14:17 UTC

    Neither did I, but I scanned through man grep to make sure I was doing things right. I did have a vague recollection there was an option to search for strings rather than regex ... it helps if you know to search for something.

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003014]
[oiskuu]: Hm. that depends on kernel compiled with CONFIG_AUDITSYSCAL L
[tye]: apropos my several mentions of audit
[Corion]: At least my (non-SELinux) Debian has that config thing set. I don't have non-Debian machines handy (except Android)
[Corion]: My Android phone also has /proc/self/ loginuid, but that displays -1 (resp. 4GB). That might be because the phone is rooted.
[tye]: -1 means nobody logged in or the process was started before audit got booted
[davido]: ok, on my ubuntu system getlogin grabs from /proc/self/ loginuid (per strace)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-06-23 19:56 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.