Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

grep

How can I “grep” patterns across multiple lines?

August 11, 2022 by Magenaut

It seems I am misusing grep/egrep.

Categories Q&A, Unix & Linux Tags file-search, grep, regular-expression, search Leave a comment

Why is direct invocation as either egrep or fgrep deprecated?

August 11, 2022 by Magenaut

According to the manual page of grep-Programs,

Categories Q&A, Unix & Linux Tags grep Leave a comment

Finding the ID of a process and killing it

August 11, 2022 by Magenaut

When ever I need to kill a background process I do ps -e | grep <process_name>

Categories Q&A, Unix & Linux Tags grep, kill, process, ps Leave a comment

Match exact string using grep

August 11, 2022 by Magenaut

I have a text file:

Categories Q&A, Unix & Linux Tags grep Leave a comment

Searching for a string on multiple zip files

August 11, 2022 by Magenaut

I am working on SunOS 5.10. I have a folder that contains about 200 zip files. Each zip file contains only one text file in it.
I would like to search for a specific string in all the text files in all the zip files.

Categories Q&A, Unix & Linux Tags grep, search, solaris, zip Leave a comment

What is a “loop device” when mounting?

August 11, 2022 by Magenaut

I am mounting an ISO file, and looking at this tutorial. They use the command:

Categories Q&A, Unix & Linux Tags grep, linux, loop-device, mount Leave a comment

How can I “cat” a file and remove commented lines?

August 11, 2022 by Magenaut

I’d like to know if there is a way that I could cat file like php.ini and remove all lines starting with ;

Categories Q&A, Unix & Linux Tags cat, command-line, grep, linux, replace Leave a comment

grep strange behaviour with single letter words

August 11, 2022 by Magenaut

I am removing stop words from a text, roughly using this
code

Categories Q&A, Unix & Linux Tags freebsd, grep, osx Leave a comment

How does one extract a command’s exit status into a variable?

August 11, 2022 by Magenaut

I started learning Bash a couple of days ago.

Categories Q&A, Unix & Linux Tags bash, command-line, exit-status, grep, shell Leave a comment

Find pattern from one file listed in another

August 11, 2022 by Magenaut

I want to find patterns that are listed in one file and find them in other file. The second file has those patterns separated by commas.

Categories Q&A, Unix & Linux Tags grep Leave a comment
Older posts
Page1 Page2 … Page10 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress