From f00f225f23d1c83d76195618a80bd0fb36d8a81e Mon Sep 17 00:00:00 2001 From: andran777 <86196800+andran777@users.noreply.github.com> Date: Fri, 12 Aug 2022 21:43:18 +0530 Subject: [PATCH] Add echo, egrep and fgrep content * added echo content * added egrep content * added fgrep content * Update 133-fgrep.md * Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/127-echo.md * Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/133-fgrep.md Co-authored-by: Kamran Ahmed --- .../101-live-in-terminal/127-echo.md | 9 ++++++++- .../101-live-in-terminal/132-egrep.md | 13 ++++++++++++- .../101-live-in-terminal/133-fgrep.md | 14 +++++++++++++- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/127-echo.md b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/127-echo.md index 183516c34..80c815120 100644 --- a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/127-echo.md +++ b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/127-echo.md @@ -1 +1,8 @@ -# Echo \ No newline at end of file +# echo + +`echo` is a built-in command in Linux used to display lines of text/string that are passed as an argument. It is mostly used in shell scripts and batch files to output status text or `ENV` variables to the screen or a file. + +It has the following syntax: `$ echo [options] [string]` e.g. `$ echo "Hello World!"` + +Free Content +Echo command with Examples \ No newline at end of file diff --git a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/132-egrep.md b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/132-egrep.md index d5aa9f56c..692a0d700 100644 --- a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/132-egrep.md +++ b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/132-egrep.md @@ -1 +1,12 @@ -# Egrep \ No newline at end of file +# egrep + +`egrep` (**E**xtended **Grep**) is a pattern searching command which belongs to the family of grep functions. It treats the pattern as an extended **regular expression** and prints out the lines that match the pattern. +It works the same way as `$ grep -E` command + +It has the following syntax: + +`$ egrep [options] pattern [files]` e.g. `$ egrep "search-regex" *.txt` + +Free Content +Egrep command with examples +options \ No newline at end of file diff --git a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/133-fgrep.md b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/133-fgrep.md index 35cad5714..54d6f7a2f 100644 --- a/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/133-fgrep.md +++ b/content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/133-fgrep.md @@ -1 +1,13 @@ -# Fgrep \ No newline at end of file +# fgrep + +`fgrep` (**F**ixed **Grep**) command is used for searching fixed-character strings in a file. +It treats meta-characters or regular expressions in the search field as strings. For searching any **direct string** or files having meta-characters, this is the version of grep which should be selected. It works the same way as `$ grep -F` command. + +It has the following syntax: + +`$ fgrep [options] [string] [files]` e.g. `$ fgrep "search-string" file.txt` + +Free Content +Fgrep command with examples +options +Grep vs Egrep vs Fgrep \ No newline at end of file