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
Tag Archives: linux grep
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
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
Linux `ls` and `grep` Command Usage: 10 Practical Examples
In Linux, you can use a combination of the ls and grep commands to filter the output of ls based on specific patterns or strings. This is particularly useful for searching through directory contents for files that match certain criteria. … Continue reading
Posted in File & Directory, Ls Command
Tagged grep examples, linux grep, linux ls, ls examples, ls grep
Comments Off on Linux `ls` and `grep` Command Usage: 10 Practical Examples
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
Text Processing Mastery with awk, sed, and grep: Tips, Syntax, and Examples
awk, sed and grep are powerful command-line utilities in Unix-like operating systems, each designed for different text processing tasks. Here’s an overview of each tool along with some examples: Awk awk is a scripting language that is particularly good for … Continue reading
Posted in Text Processing, Awk Command
Tagged awk examples, linux awk, linux grep, linux sed
Comments Off on Text Processing Mastery with awk, sed, and grep: Tips, Syntax, and Examples
How to find empty lines in files in Linux
In Linux, there are three ways to find empty lines in files using grep and awk commands. Continue reading
Posted in Awk Command, File & Directory, Text Processing
Tagged find empty lines, linux awk, linux grep
Comments Off on How to find empty lines in files in Linux
view linux file change time, modify time and access time, use linux stat or ls
How does Linux view change time, modify time and access time?
linux stat, linux ls.
– atime: access time;
– mtime: modify time;
– ctime: change time;
… Continue reading
Posted in Internet Technology
Tagged atime ctime mtime, chmod, linux grep, sort
Comments Off on view linux file change time, modify time and access time, use linux stat or ls