Add content for sed, cat, grep, sort and awk

* awk content with syntax and reference links

* awk content updates

* added sed content

* Added Grep Content

* Updates to Sed content

* Sort Content added

* Update 122-grep.md

* Cat Command

* Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/120-awk.md

* Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/121-sed.md

* Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/122-grep.md

* Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/123-sort.md

* Update content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/126-cat.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/1459/head
andran777 2 years ago committed by GitHub
parent 37bf6713b4
commit a4eb636bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/120-awk.md
  2. 13
      content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/121-sed.md
  3. 12
      content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/122-grep.md
  4. 13
      content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/123-sort.md
  5. 17
      content/roadmaps/102-devops/content/102-managing-servers/101-live-in-terminal/126-cat.md

@ -1 +1,11 @@
# Awk
# awk
`awk` is a general-purpose scripting language used for manipulating data or text and generating reports in the Linux world. It is mostly used for pattern scanning and processing. It searches one or more files to see if they contain lines that match the specified patterns and then performs the associated actions.
It has the below syntax:
`awk options 'selection_criteria {action}' input-file > output-file` e.g. `$ awk '{print}' file.txt`
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/awk-command-unixlinux-examples/'>What is AWK? How to use it?</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://linuxize.com/post/awk-command/'>How AWK works?</BadgeLink>

@ -1 +1,12 @@
# Sed
# sed
`sed`(**S**tream **Ed**itor) command in UNIX can perform lots of functions on file like searching, finding and replacing, insertion or deletion. By using SED you can edit files even without opening them in editors like [VI Editor](https://www.redhat.com/sysadmin/introduction-vi-editor).
It has the following syntax:
`$ sed [options].. [script] [input-file]` e.g. `$ sed 's/search-regex/replacement-txt/g' file.txt`
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/sed-command-in-linux-unix-with-examples/'>What is SED? with examples</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Manual' href='https://www.gnu.org/software/sed/manual/sed.html'>Detailed Manual</BadgeLink>

@ -1 +1,11 @@
# Grep
# grep
The `grep` command (**g**lobal search for **r**egular **e**xpression and **p**rint out) searches file(s) for a particular pattern of characters, and displays all lines that contain that pattern. It can be used with other commands like `ps` making it more useful.
It has the following syntax:
`$ grep [options] pattern [files]` e.g. `$ grep "search-regex" file-1.txt`
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/grep-command-in-unixlinux/'>What is Grep? with examples</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Manual' href='https://www.gnu.org/software/grep/manual/grep.html'>Detailed Manual</BadgeLink>

@ -1 +1,12 @@
# Sort
# sort
`sort` command is used to sort the contents of a file in a particular order. By default, it sorts a file assuming the contents are in ASCII. But it also can also be used to sort numerically by using appropriate options.
It has the following syntax
`$ sort [options].. input-file` e.g. `$ sort file.txt`
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/sort-command-linuxunix-examples/'>Sort command with examples</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Wiki' href='https://en.wikipedia.org/wiki/Sort_(Unix)'>Options</BadgeLink>

@ -1 +1,16 @@
# Cat
# cat
`cat` (concatenate) command is very frequently used in Linux. It reads data from the file and gives its content as output. It helps us to create, view, and concatenate files.
It has the following syntax:
* View : `$ cat [option] [input-file]`
* Create : `$ cat [content] > [new-file]`
* Append : `$ cat [append_content] >> [existing-file]`
e.g. `$ cat file.txt`
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.tecmint.com/13-basic-cat-command-examples-in-linux/'>Cat Command with examples</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Wiki' href='https://en.wikipedia.org/wiki/Cat_(Unix)'>Options</BadgeLink>
Loading…
Cancel
Save