Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

grep

grep : ‘+’ special character

by IT Nursery

At that link to the POSIX specification you gave, you can read: An ordinary character is a BRE that matches itself: any character … Read more

Tags grep

How to filter the success message when using nc port scan

by IT Nursery

How to filter the success message when using nc port scan

Tags grep, nc

Each grep result to different file

by IT Nursery

Each grep result to different file

Tags awk, grep, text-processing

what is the use of egrep [[:print:]] command in bash?

by IT Nursery

You can find an explanation in the GNU’s Character Classes and Bracket Expressions documentation: ‘[:print:]’ Printable characters: ‘[:alnum:]’, ‘[:punct:]’, and space. If you … Read more

Tags bash, grep, linux, shell

How to make grep for a regex that appear multiple times in a line

by IT Nursery

Using GNU awk for the FPAT: awk -v FPAT=’\\[([0-9]{1,3}[.]){3}[0-9]{1,3}\\]’ -v OFS=, ‘ { $1=$1; print (gsub(/[][]/, “”)?$0:”N/A”) }’ <infile >output or with any … Read more

Tags grep, regular-expression, sed

Understanding grep –label=

by IT Nursery

Understanding grep –label=

Tags command-line, grep, options

How to filter logs between a time range

by IT Nursery

If you just want particular lines between a certain time then awk will work. To give a slight tutorial To start with and … Read more

Tags awk, grep, sed, text-processing

Pattern matching across multiple lines

by IT Nursery

You were close with pcregrep. You need to explicitly include \n along with . in your pattern pcregrep -M ‘301(.|\n)*domain\.com(.|\n)*200’

Tags awk, bash, grep, sed

Using Grep -o or Sed/Awk to Grab Snippet from Middle of String

by IT Nursery

You can do sed ‘s/^.*search?q=\([^&]*\)&.*/\1/’ file What this does is does a non greedy match between the search?q= and the & Which outputs … Read more

Tags awk, grep, sed

How to make this search faster in fgrep/Ag?

by IT Nursery

You could probably make it a little bit faster by running multiple find calls in parallel. For example, first get all toplevel directories … Read more

Tags ag, grep, parallelism, time
Post navigation
Older posts
Page1 Page2 … Page76 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery