Skip to content
Snippets Groups Projects
Verified Commit 64ce6b98 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

eloadas alpha 1

parent 37f708b8
No related branches found
No related tags found
No related merge requests found
Pipeline #6943 passed
% Linux előadás
% Tóth Miklós
% March 21, 2021
# Pár egyéb hasznos parancs
## `wc`
- word counter
- szavak, sorok számolása
```shell-session
[mike@thinkyboi ~]$ echo "egy két há" | wc -w
3
[mike@thinkyboi ~]$ echo "egy két há" | wc -l
1
[mike@thinkyboi ~]$ echo "egy
két
há" | wc -l
3
```
## `tr`
- karaktereket cserél ki vagy töröl
```shell-session
[mike@thinkyboi ~]$ echo "almafa" | tr "a" "e"
elmefe
[mike@thinkyboi ~]$ echo "almafa körtefa eperfa" | tr " " "\n"
almafa
körtefa
eperfa
[mike@thinkyboi ~]$ echo "almafa" | tr -d "a"
lmf
```
## `curl`
- http shellből
-
# `>>` operátor
- `>` tesója
- filehoz appendál
```shell
curl https://git.sch.bme.hu/mikewashere.keys >> .ssh/authorized_keys
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment