Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pages.nl: use " " instead of "=" to separate the options from their arguments, cut: fix example #12690

Merged
merged 4 commits into from May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages.nl/android/logcat.md
Expand Up @@ -17,8 +17,8 @@

- Toon logs voor een specifieke PID:

`logcat --pid={{pid}}`
`logcat --pid {{pid}}`

- Toon logs voor een proces van een specifiek pakket:

`logcat --pid=$(pidof -s {{pakket}})`
`logcat --pid $(pidof -s {{pakket}})`
8 changes: 4 additions & 4 deletions pages.nl/common/2to3.md
Expand Up @@ -13,20 +13,20 @@

- Converteer specifieke Python 2-taalfuncties naar Python 3:

`2to3 --write {{pad/naar/bestand.py}} --fix={{raw_input}} --fix={{print}}`
`2to3 --write {{pad/naar/bestand.py}} --fix {{raw_input}} --fix {{print}}`

- Converteer alle Python 2-taalfuncties behalve de gespecificeerde naar Python 3:

`2to3 --write {{pad/naar/bestand.py}} --nofix={{has_key}} --nofix={{isinstance}}`
`2to3 --write {{pad/naar/bestand.py}} --nofix {{has_key}} --nofix {{isinstance}}`

- Geef een lijst weer met alle beschikbare taalfuncties die kunnen worden geconverteerd van Python 2 naar Python 3:

`2to3 --list-fixes`

- Converteer alle Python 2-bestanden in een map naar Python 3:

`2to3 --output-dir={{pad/naar/python3_map}} --write-unchanged-files --nobackups {{pad/naar/python2_map}}`
`2to3 --output-dir {{pad/naar/python3_map}} --write-unchanged-files --nobackups {{pad/naar/python2_map}}`

- Voer 2to3 uit met meerdere threads:

`2to3 --processes={{4}} --output-dir={{pad/naar/python3_map}} --write --nobackups --no-diff {{pad/naar/python2_map}}`
`2to3 --processes {{4}} --output-dir {{pad/naar/python3_map}} --write --nobackups --no-diff {{pad/naar/python2_map}}`
4 changes: 2 additions & 2 deletions pages.nl/common/ack.md
Expand Up @@ -18,11 +18,11 @@

- Beperk het zoeken tot bestanden van een specifiek type:

`ack --type={{ruby}} "{{zoekpatroon}}"`
`ack --type {{ruby}} "{{zoekpatroon}}"`

- Zoek niet in bestanden van een specifiek type:

`ack --type=no{{ruby}} "{{zoekpatroon}}"`
`ack --type no{{ruby}} "{{zoekpatroon}}"`

- Tel het totaal aantal gevonden matches:

Expand Down
4 changes: 2 additions & 2 deletions pages.nl/common/adb-logcat.md
Expand Up @@ -25,11 +25,11 @@

- Geef logboeken weer voor een specifiek proces:

`adb logcat --pid={{pid}}`
`adb logcat --pid {{pid}}`

- Logboeken weergeven voor het proces van een specifiek pakket:

`adb logcat --pid=$(adb shell pidof -s {{pakket}})`
`adb logcat --pid $(adb shell pidof -s {{pakket}})`

- Kleur de log in (gebruik meestal met filters):

Expand Down
2 changes: 1 addition & 1 deletion pages.nl/common/chgrp.md
Expand Up @@ -17,4 +17,4 @@

- Verander de beheerdersgroep van een bestand/map naar de permissies van een referentiebestand:

`chgrp --reference={{pad/naar/referentiebestand}} {{pad/naar/bestand_of_map}}`
`chgrp --reference {{pad/naar/referentiebestand}} {{pad/naar/bestand_of_map}}`
2 changes: 1 addition & 1 deletion pages.nl/common/chown.md
Expand Up @@ -25,4 +25,4 @@

- Verander de beheerder van een bestand of map naar dezelfde als een referentiebestand:

`chown --reference={{pad/naar/referentiebestand}} {{pad/naar/bestand_of_map}}`
`chown --reference {{pad/naar/referentiebestand}} {{pad/naar/bestand_of_map}}`
6 changes: 3 additions & 3 deletions pages.nl/common/cut.md
Expand Up @@ -5,12 +5,12 @@

- Toon een specifiek karakter/veldbereik voor iedere regel:

`{{commando}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}`
`{{commando}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}`

- Toon een bereik voor iedere regel met een specifieke scheiding:

`{{commando}} | cut --delimiter="{{,}}" --fields={{1}}`
`{{commando}} | cut --delimiter "{{,}}" --fields {{1}}`

- Toon een bereik van iedere regel voor een specifiek bestand:

`cut --characters={{1}} {{pad/naar/bestand}}`
`cut --characters {{1}} {{pad/naar/bestand}}`
2 changes: 1 addition & 1 deletion pages/common/cut.md
Expand Up @@ -9,7 +9,7 @@

- Print a field range of each line with a specific delimiter:

`{{command}} | cut --delimiter="{{,}}" --fields {{1}}`
`{{command}} | cut --delimiter "{{,}}" --fields {{1}}`

- Print a character range of each line of the specific file:

Expand Down