How to grep (search through) committed code in the Git history How to Grep Committed Code in Git History When working with a codebase developers often need to trace back through the version history to find specific changes 3 min read 08-10-2024 5
Use grep to match a pattern in a line only once Using grep to Match a Pattern in a Line Only Once The command line utility grep is a powerful tool for searching text and matching patterns in files However man 2 min read 08-10-2024 6
Bash, grep between two lines with specified string Extracting Data Between Lines Mastering grep in Bash Extracting specific data from a large text file can be a common task especially when dealing with log files 2 min read 07-10-2024 3
Linux grep command Unleashing the Power of grep Your Go To Tool for Finding Text in Linux The Linux command line is a powerful tool and within its vast arsenal lies grep a versati 2 min read 07-10-2024 4
Finding a string in docker logs of container Hunting Down Strings in Docker Logs A Guide to Efficient Troubleshooting Ever find yourself staring at a wall of text in Docker logs desperately trying to locat 2 min read 07-10-2024 5
How to use "find" combined with "grep" for specific information inside of files AND include the filename where the info was found? Unleashing the Power of find and grep for Targeted File Searches Searching for specific information within a vast file system can feel like trying to find a nee 2 min read 06-10-2024 9
pgrep -P, but for grandchildren not just children Finding Process Grandchildren and Great Grandchildren with pgrep Have you ever needed to find all the processes descended from a specific parent process but not 2 min read 06-10-2024 8
grep regexp to match space and/or TAB and '[:space:]' class Grepping for Whitespace Mastering grep with Regular Expressions Have you ever needed to search for lines containing spaces or tabs within a file but found yours 2 min read 06-10-2024 9
grep every other occurrence of a value Finding Every Other Occurrence Mastering the Art of Grep Filtering Ever needed to extract specific information from a file but only for every other instance of 2 min read 06-10-2024 6
how to grep a specific passage in a line in accordance to another line How to Use Grep to Extract Specific Passages from Lines Based on Another Line Introduction When working with text files in a Unix based system one of the most p 2 min read 30-09-2024 7
grep or sed to delete 1 line after a match (but not the match)? Using grep or sed to Delete a Line After a Match Without Deleting the Match When working with text files you may encounter situations where you need to manipula 2 min read 30-09-2024 6
how can i tail the last line of multiple log files, only if they have not completed yet? Tail the Last Line of Multiple Log Files That Are Still Active When managing server operations or application logs its often necessary to monitor log files for 2 min read 22-09-2024 16
emacs windows gitbash and cmd.exe shells Emacs Windows Git Bash and CMD exe A Comprehensive Guide In the world of programming and software development the tools we choose can significantly enhance our 3 min read 21-09-2024 14
use sed group variable within loop for another grep Using sed Group Variables within a Loop for grep In the world of Unix Linux command line utilities combining tools like sed and grep can be incredibly powerful 2 min read 19-09-2024 16
How to grep a next line json file How to Grep the Next Line in a JSON File JSON Java Script Object Notation is a lightweight data interchange format thats easy for humans to read and write and e 2 min read 18-09-2024 18
Search for specific content in a file present in multiple sub folders - Linux Searching for Specific Content in Files Across Multiple Subfolders in Linux When managing files in Linux its common to encounter scenarios where you need to fin 3 min read 18-09-2024 14
Find catch blocks that return optional empty How to Identify Catch Blocks that Return Optional Empty in Your Code When developing in Java specifically when dealing with exception handling one common scenar 3 min read 17-09-2024 14
Git: Display a list of branches found using `grep`, and allow selection by entering the branch number Efficient Branch Management in Git Filtering and Selecting with grep When working with Git managing branches can sometimes feel overwhelming especially in proje 3 min read 15-09-2024 24
How to create an "alias" that search for an "alias" How to Create an Alias that Searches for Another Alias in Bash Creating aliases in Bash is a powerful way to streamline your command line workflows However some 2 min read 15-09-2024 17
Using sed, how do you print the first 'N' characters of a line? Extracting the First N Characters of a Line with sed Lets delve into using sed to extract the first N characters of a line You re trying to achieve this within less than a minute read 07-09-2024 17
Capturing Groups From a Grep RegEx Extracting Captured Groups from Grep Regular Expressions in Bash The challenge lies in capturing the content within parentheses a capturing group from a regular 2 min read 07-09-2024 25
How to grep for the whole word How to Use Grep to Find Whole Words in Subdirectories When searching for specific patterns in files using the grep command it s essential to ensure that the sea 2 min read 07-09-2024 16
Validating IPv4 addresses with regexp Validating I Pv4 Addresses with Regex A Comprehensive Guide In this article we will discuss how to effectively validate I Pv4 addresses using regular expression 3 min read 07-09-2024 24
Add blank line after every result in grep Adding a Blank Line After Every Grep Result Across Multiple Files Imagine you re searching for a specific pattern across multiple files using zgrep with the B a 2 min read 07-09-2024 19
Find files that does not contain a string Finding Files Without Specific Strings A Comprehensive Guide Lets say you have a directory full of files and need to identify those that don t contain specific 2 min read 06-09-2024 16