World is Welcome To The World of Linux

Journey into the world of linux

Menu
  • About
  • Welcome
Menu

grep Command Tutorial – 1(Video)

Posted on January 23, 2019January 23, 2019 by Ganesh Sharma

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Simple things which we can do with grep command.
Some questions helpful in understand the command have been discussed here:

  1. Find pattern red in file colors.txt try both match case and without match case.
  2. Match files where exact word red appears.
  3. Match only those lines where red does not appear.
  4. Count the lines which have a word red.
  5. Count the lines which have no word red.
  6. Find the pattern straw in all files.
  7. Find the exact word straw in all files.
  8. Find the line and line number at which the word five appears in a file.
  9. Find the lines in which the word Mango appears.
  10. Find the lines in which the word mango appears, without matching the case.
  11. Let’s count the lines in which the word yellow appears in all files.
  12. Find the files in which word red appears.
  13. Find the files in which word red does not apear.
  14. Print only the matching word from all the files.
  15. Get next three lines after the word triangle in shapes.
  16. Get two lines before the word blueberry in fruits.

Above tutorial is coming soon in Hindi too.

For more useful video tutorials please visit my Youtube channel at: https://www.youtube.com/channel/UCqQFJUtuySFQz2d8sLIkSDQ

Leave a Reply Cancel reply

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

Recent Posts

  • Date Command Tutorial(Video)
  • grep Command Tutorial – 1(Video)
  • Introduction To ls Command(Video)
  • Chapter 3
  • Set Position Of Poll Module Into Joomla

Recent Comments

  • Kansas City Trailer Proz on Physical Volume In AIX – A Primer
  • Create volume group in AIX | myunixsheet on How To Create Volume Group
  • Restore of AIX backup on other Unix system - TecHub on What is mksysb And What Are Its Components
  • Firewall Unleashed - InfoSec Institute on Packet Filtering Firewall: An Introduction
  • Manwendra on Proxy Firewall and Gateway Firewall: Introduction

Archives

  • January 2019
  • June 2010
  • May 2010
  • February 2010
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008

Categories

  • 30 Days To Joomla WebSite Setup
  • A Journey To The World of Linux System Administration
  • Aix
  • Backups
  • Books
  • Firewalls
  • Introduction
  • Joomla
  • Joomla Backup
  • Joomla Web Technology
  • Linux
  • LPAR and Virtualization
  • LVM
  • Pluggable Authentication Modules
  • section navigator pro
  • Security
  • Security Knowledge Base
  • Tips and Tricks
  • Uncategorized
  • World is Welcome Products

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
©2023 World is Welcome To The World of Linux | WordPress Theme by SuperbThemes