mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-09 01:58:03 +00:00
Deployed 8751885 with MkDocs version: 1.2.3
This commit is contained in:
@@ -2704,7 +2704,7 @@ You can go to the beginning and the end of a file instantly.</p>
|
||||
shell. This command is equivalent to what we have <print> in other
|
||||
programming languages.</p>
|
||||
<p>The echo command prints the given input string on the screen.</p>
|
||||
<p><img alt="" src="../images/linux/commands/image24.png" /></p>
|
||||
<p><img alt="" src="../images/linux/commands/image34.png" /></p>
|
||||
<h2 id="text-processing-commands">Text Processing Commands</h2>
|
||||
<p>In the previous section, we learned how to view the content of a file.
|
||||
In many cases, we will be interested in performing the below operations:</p>
|
||||
@@ -2748,7 +2748,7 @@ an input to the grep command.</p>
|
||||
</code></pre>
|
||||
<p>In this example, we are trying to search for a string "1" in this file.
|
||||
The grep command outputs the lines where it found this string.</p>
|
||||
<p><img alt="" src="../images/linux/commands/image5.png" /></p>
|
||||
<p><img alt="" src="../images/linux/commands/image36.png" /></p>
|
||||
<h3 id="sed">sed</h3>
|
||||
<p>The sed command in its simplest form can be used to replace a text in a
|
||||
file.</p>
|
||||
|
||||
BIN
level101/linux_basics/images/linux/commands/image34.png
Normal file
BIN
level101/linux_basics/images/linux/commands/image34.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
level101/linux_basics/images/linux/commands/image35.png
Normal file
BIN
level101/linux_basics/images/linux/commands/image35.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
level101/linux_basics/images/linux/commands/image36.png
Normal file
BIN
level101/linux_basics/images/linux/commands/image36.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
Reference in New Issue
Block a user