Skip to content
GoLinuxHub
  • Home
  • Linux Basics
  • Security
  • VMware
  • DevOps
  • Programming
  • Contact Me

grep

How to print or grep only the matched string or text or word or pattern in Linux using bash

By default when we use grep without any switch it prints the entire line which matches the string we tried to grep for For eg I would like search for "ModLoad" in my rsyslog.conf file

Recent Posts

  • Everything You Need to Know About Vulnerability Management
  • How Does IT Enhance the Experience of Online Gambling?
  • What Is A Route API?
  • Transforming Your Exhibition Space with Shell Scheme Graphics
  • Mastering Power BI Implementation: A Step-by-Step Guide
  • Harnessing New Technologies to Elevate Human Health
  • Cross-Platform Development: Harnessing the Power of Kink 0.6.5 to Craft Applications Compatible with Linux and Beyond
  • Data Backup Failure: 9 Reasons & Solutions 
  • Online Blackjack: The Game That Will Make You A Fortune
  • 6 Best Practices For A Successful Cloud Backup
Copyright © 2025 | Hosted On Rocket.net