• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

grep

Print grep command output without seperator

July 1, 2015 by Sharad Chhetri

I am working with grep command and found two dashes ( — ) in output. How can I print grep command output without two dashes ( — ) that is also called separator. Answer : To print grep command output without separator , you can use the option –no-group-separator with grep command. How to print […]

Filed Under: Linux Tagged With: grep

grep command to remove commented lines

June 25, 2014 by Sharad Chhetri Leave a Comment

In this post we will learn how to use grep command to remove commented lines. We can also use egrep command which is extended form of grep command. As a Linux System Engineer, I mostly use some of the command. Most of the time when I am busy in playing on system, I generally meet […]

Filed Under: Linux Commands Tagged With: grep, linux command

grep command to remove blank lines from file

June 25, 2014 by Sharad Chhetri Leave a Comment

FAQ : How to use grep command to remove blank lines from file Answer: To remove the blank lines from file, use the given below syntax grep -v ‘^$’ /path/of/file-name In above command, -v = Invert the sense of matching, to select non-matching lines ^$ = It is regex. ^ means start with and $ […]

Filed Under: Linux Commands Tagged With: grep, linux command

grep command to find multiple strings or keyword from file

June 3, 2014 by Sharad Chhetri Leave a Comment

This post explains about grep command to find multiple strings or keyword from file. In Linux or Unix like operating system, the grep command utility is widely used. Grep is a command-line utility for searching plain-text data sets for lines matching a regular expression. Grep was originally developed for the Unix operating system, but is […]

Filed Under: Linux Commands Tagged With: grep, linux command

grep command to show lines after and before the keyword

February 12, 2014 by Sharad Chhetri Leave a Comment

In this post,I am sharing a useful option with linux grep command.In this tutorial, we will use grep command to show lines after and before the keyword . As a Linux System Engineer, sometimes I get the requirement to print lines above and below of a particular keyword in the file. Generally if you only […]

Filed Under: Linux, Linux Commands Tagged With: grep, linux command

search keyword in file with line number using grep command

December 8, 2013 by Sharad Chhetri Leave a Comment

grep command which is used for searching the keyword in file and show its output as lines containing a match to the given PATTERN or Keyword. When we simply use grep command without using any switches it simply shows the output with line having the keyword.Today,in this post we will know about a small tip […]

Filed Under: Linux Tagged With: grep

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Protect from w00tw00t.at.blackhats.romanian.anti-sec

Learn Linux Date Command With Examples

How to find swap partition or file in linux

Forgot root password ,Reset it in Run level 1

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

send email after mysql backup through bash script in simple way

Could not find make anywhere!!! Please edit the config section to include the path to make. at ./install.pl line 2101

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy