mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 09:57:12 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# egrep
|
# egrep
|
||||||
|
|
||||||
> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`).
|
> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()`, and `|`).
|
||||||
> More information: <https://manned.org/egrep>.
|
> More information: <https://manned.org/egrep>.
|
||||||
|
|
||||||
- Search for a pattern within a file:
|
- Search for a pattern within a file:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||||
|
|
||||||
- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
|
- Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:
|
||||||
|
|
||||||
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}`
|
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}`
|
||||||
|
|
||||||
|
|||||||
25
tldr/linux/informant
Normal file
25
tldr/linux/informant
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# informant
|
||||||
|
|
||||||
|
> Read Arch Linux package news.
|
||||||
|
> More information: <https://github.com/bradford-smith94/informant>.
|
||||||
|
|
||||||
|
- Read all unread news:
|
||||||
|
|
||||||
|
`sudo informant read`
|
||||||
|
|
||||||
|
- Check for news:
|
||||||
|
|
||||||
|
`informant check`
|
||||||
|
|
||||||
|
- List latest news:
|
||||||
|
|
||||||
|
`informant list`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`informant --help`
|
||||||
29
tldr/linux/qmake
Normal file
29
tldr/linux/qmake
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# qmake
|
||||||
|
|
||||||
|
> Generate Makefiles from Qt project files.
|
||||||
|
> More information: <https://doc.qt.io/qt-6/qmake-manual.html>.
|
||||||
|
|
||||||
|
- Generate a `Makefile` from a project file in the current directory:
|
||||||
|
|
||||||
|
`qmake`
|
||||||
|
|
||||||
|
- Specify `Makefile` and project file locations:
|
||||||
|
|
||||||
|
`qmake -o {{path/to/Makefile}} {{path/to/project_file.pro}}`
|
||||||
|
|
||||||
|
- Generate a default project file:
|
||||||
|
|
||||||
|
`qmake -project`
|
||||||
|
|
||||||
|
- Compile a project:
|
||||||
|
|
||||||
|
`qmake && make`
|
||||||
|
|
||||||
|
- Enable debug mode:
|
||||||
|
|
||||||
|
`qmake -d`
|
||||||
Reference in New Issue
Block a user