Skip to content

XceptN’s Tech Stuff

All About Tech

“OR” Operation in “grep”

Posted on March 14, 2014 By XceptN No Comments on “OR” Operation in “grep”

Since I do not need this frequently, I keep forgetting about this.

To get any lines that matches “durdane” OR “uzeyir” in a text stream you should use “\|” operator (“|” escaped with a backslash) with whole expression in quotes. See below:

 $ grep "durdane\|uzeyir" <text file>

or

 $ <some text stream> | grep "durdane\|uzeyir"
desktop, linux, sysadm

Post navigation

Previous Post: 2012: What a year for Linux…
Next Post: Close Encounters with Windows 8

Related Posts

Mercurial (hg) Fails with “abort: error: Name or service not known” via a Proxy linux
xulrunner and firefox desktop
Jumbo Frames and Nagle’s Algorithm (RFC 896) network
PXE Boot Config Enterprise Linux linux
Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux desktop
Detected Deskjet 610C Does Not Print desktop

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Dipping Toes into Nix Package Manager | Installing Freeplane
  • Fujitsu Workplace Protect Face Recognition Best Practices on Q704
  • Fujitsu STYLISTIC Q704 Fingerprint Scanner Problems
  • Two Generations of Computing Equipment…
  • IBM Model M Keyboard Goes Blank

Recent Comments

  1. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  2. XceptN on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  3. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  4. Kaylee on Mounting an LVM Logical Volume in an Oracle VM Disk Image
  5. Theron Conrey on Open Source Virtualization for Smaller Carbon Footprint

Archives

  • June 2024
  • November 2014
  • October 2014
  • April 2014
  • March 2014
  • December 2012
  • November 2012
  • October 2010
  • April 2010
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008

Categories

  • blogging
  • communication
  • desktop
  • development
  • firmware
  • Fujitsu
  • gprs
  • gps
  • hardware
  • internet
  • java
  • kernel
  • keyboard
  • linux
  • masteryourbiz
  • mms
  • mobile
  • multimedia
  • network
  • OracleVM
  • palm
  • python
  • rokr e6
  • social media networking
  • storage
  • sysadm
  • tablet
  • twitter
  • virtualization
  • wap
  • windows
  • wordpress
  • xen

Copyright © 2025 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark