Latest Posts
Tags
awk awk -F awk examples background run script bash awk command grep linux curl disk space docker commands docker usage du find and grep Google Analytics grep -v grep examples java java example linux awk linux command linux find linux grep linux ls ls -al ls -lrt ls examples ls sort ls sort by size mkdir mv examples mysql mysql column to row mysql example rm rmdir sed sed examples sed tutorial seo Shell tutorial top vim vim examples vim tutorial w wordpress
Category Archives: Grep Command
command grep examples in linux
The grep command in Linux is indispensable for filtering and searching through text. Here are some practical examples of how to use grep in different scenarios: These examples showcase the flexibility and power of grep for text searching and data … Continue reading
Posted in File & Directory, Grep Command
Tagged command grep linux, grep examples, linux grep
Comments Off on command grep examples in linux
linux grep i option
In Linux, the grep command’s -i option is used for performing a case-insensitive search. This means that when you use -i, grep will match both uppercase and lowercase versions of the letters in the pattern you are searching for. Here’s … Continue reading
Posted in File & Directory, Grep Command
Tagged command grep linux, grep i option, linux grep
Comments Off on linux grep i option
linux grep regex
In Linux, grep supports regular expressions (regex), which allow for pattern matching more complex than simple substring searches. Here’s how you can use grep with regular expressions: Remember to enclose your regular expressions in single quotes ‘ to prevent the … Continue reading
Posted in File & Directory, Grep Command
Tagged grep multiple words, grep regex, linux grep
Comments Off on linux grep regex
linux grep exclude and include
In Linux, you can use grep to both include and exclude patterns in the same search by combining the use of the -e option for including patterns and the -v option for excluding patterns. However, you need to group the … Continue reading
Posted in File & Directory, Grep Command
Tagged grep -v, grep exclude, grep exclude and include, grep include, linux grep
Comments Off on linux grep exclude and include
linux grep exclude
In Linux, grep can be used to exclude certain patterns from the search results using the -v option, which inverts the match. Here are some examples of how to use grep to exclude patterns: The -v option tells grep to … Continue reading
Posted in File & Directory, Grep Command
Tagged grep -v, grep exclude, linux grep
Comments Off on linux grep exclude
10 Ways To View Logs In Linux/Unix
View Logs Log viewing is one of the most frequently used command lines in our daily use of Linux/Unix systems. Do you know how to efficiently query logs? 1. Use the cat command to output all log content. This method … Continue reading
Posted in Grep Command, File & Directory
Tagged grep, grep -v, more & less, tail -f
Comments Off on 10 Ways To View Logs In Linux/Unix
linux grep multiple words
In Linux, to use grep to search for multiple words in a file, you can simply separate the words with a space or use them as part of a regular expression. Here are some examples: Here, | is used as … Continue reading
Posted in File & Directory, Grep Command
Tagged grep multiple words, grep pipeline, linux grep
Comments Off on linux grep multiple words
linux grep pattern
In Linux, the grep command is used to search for a specific pattern in the input. When you want to search for a pattern in files or output from other commands, here’s how you can use grep: Remember to replace … Continue reading
Posted in File & Directory, Grep Command
Tagged grep examples, grep pattern, linux grep
Comments Off on linux grep pattern
command grep linux
The grep command in Linux is a powerful utility for searching through text using patterns called regular expressions. Here’s a brief overview of how to use the grep command: Basic Usage: Options: Examples: grep is a versatile command that can … Continue reading
Posted in File & Directory, Grep Command
Tagged command grep, command grep linux, linux grep
Comments Off on command grep linux