• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
sharadchhetri.com

sharadchhetri.com

Linux,Cloud Computing And DevOps

  • Home
  • Linux
  • CloudComputing
    • Introduction Cloud Computing
    • Amazon AWS
  • Free E-Books
  • About Me

grep

Print grep command output without seperator

July 1, 2015 by Sharad Chhetri Leave a Comment

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 commands

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

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 commands

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

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

Follow Us

  • Facebook
  • Twitter
  • GitHub
  • YouTube

Recent Posts

  • Activate.ps1 cannot be loaded because running scripts is disabled on this system
  • How to install Java (OpenJDK) on Ubuntu Linux
  • How to install Groovy on Ubuntu 20.04 LTS
  • How to Disable selinux in Red Hat or CentOS
  • How to remove date from WordPress Post URL

Top Posts & Pages

  • How to delete mail queue in Postfix
  • How to fix read only USB pen drive in Ubuntu
  • How to start / stop / restart / reload iptables on CentOS 7 / RHEL 7
  • 4 different commands to check the load average in linux
  • How to set hostname and FQDN on CentOS 7 and RHEL 7
  • How to find absolute path of command on Linux / Unix : which command
  • How to create Jenkins user by command line and GUI
  • How to print particular line number by using sed command
  • How to setup Jenkins Credentials for Git repo access
  • make command not found in linux CentOS Red Hat ubuntu Debian

DevOps Posts

  • vagrant cloud flow

    Install Vagrant on Ubuntu and create first VM

  • git jenkins credential github

    How to setup Jenkins Credentials for Git repo access

  • terraform

    how to install terraform in Linux : CentOS-Ubuntu

  • docker image

    How to create Ubuntu docker base image

  • Install Ansible on Ubuntu / CentOS / RHEL

Footer

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Sharad Chhetri is an experienced Linux - Cloud Engineer & freelancer. Working on Open Source Technology since RHEL 4.0 (Red Hat Enterprise Linux). He loves sharing the knowledge which earned from real scenarios. Don't be surprised if you find him in technology seminars and meetup groups. You can contact him on email for freelance projects at admin@sharadchhetri.com. Read More…

Tags

Amazon AWS apache automation awk bash script CentOS centos 7 debian devops docker freebsd ftp ghost git grep hostname jenkins kvm linux linux command linux commands MariaDB Server mysql Nagios nginx Octopress owncloud Owncloud 6 php postfix postgres python Red Hat rpm sed selinux ssh swap ubuntu user management vagrant varnish virtualbox vsftp wordpress

Recent Comments

  • Sharad Chhetri on How to fix read only USB pen drive in Ubuntu
  • iain mckeand on How to fix read only USB pen drive in Ubuntu
  • Sharad Chhetri on Secondary Logging : save all users history command output as log
  • Sharad Chhetri on How to fix read only USB pen drive in Ubuntu
  • er on What is /dev/shm and how to mount /dev/shm
  • Bala on Send nagios report as pdf file via email
  • Terry on How to fix read only USB pen drive in Ubuntu
  • Terry on How to fix read only USB pen drive in Ubuntu

Copyright © 2009 - 2022 · All Rights Reserved sharadchhetri.com · · Privacy Policy ·
· sitemap.xml · ·The content is copyrighted to sharadchhetri.com and may not be reproduced on other websites without our permission. ·

Copyright © 2022 Ā· Genesis Sample on Genesis Framework Ā· WordPress Ā· Log in

 

Loading Comments...