Skip to content

Commit

Permalink
Add linux pipes to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
relativvv committed Oct 20, 2022
1 parent d7ed550 commit 039d75e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,15 @@
"contributions": [
"code"
]
},
{
"login": "relativvv",
"name": "Robin Schulte",
"avatar_url": "https://avatars.githubusercontent.com/u/52501124?s=400&u=65c9b54a550063e6bd3b4fb36f0ed7c9ac80bde5&v=4",
"profile": "https://github.com/relativvv",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
15 changes: 15 additions & 0 deletions LINUX/Basic_Command
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ COPY/RENAME/MOVE/OPERATION

---

##Linux pipes

cat test.txt | grep 'searchkey' ---> Only gives lines from that file thant contains the key in ''

cat test.txt | less ---> Prints out file content, but you have the possibility to scroll
Quit the reading with 'q'

cat test.txt | uniq ---> This will sort the given file and print the unique values only.

cat test.txt | head -4 ---> Only prints out the last 4 lines of the command before the pipe, you can specify any number you want

ls | wc -l ---> prints out the linenumber of the command before the pipe

---

##PERMISSION

Observe the output of ls:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
</tr>
<tr>
<td align="center"><a href="https://github.com/darostegui"><img src="https://avatars.githubusercontent.com/u/61184284?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Diego Arostegui</b></sub></a><br /><a href="https://github.com/Tikam02/DevOps-Guide/commits?author=darostegui" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/relativvv"><img src="https://avatars.githubusercontent.com/u/52501124?s=400&u=65c9b54a550063e6bd3b4fb36f0ed7c9ac80bde5&v=4" alt=""/><br /><sub><b>relativvv</b></sub></a><br /><a href="https://github.com/relativvv/DevOps-Guide/commits?author=relativvv" title="Code">💻</a></td>
</tr>
</table>

Expand Down

0 comments on commit 039d75e

Please sign in to comment.