Update cheatsheets

This commit is contained in:
ivuorinen
2025-01-15 00:17:16 +00:00
parent 7e8c7b7588
commit 7f2392a93f
5 changed files with 69 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# 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>.
- Search for a pattern within a file:

View 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}}`
- 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}}`

25
tldr/linux/informant Normal file
View 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
View 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`

13
tldr/tqdm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# tqdm
> Create a progress bar.
> More information: <https://tqdm.github.io/>.
- Create a progress bar:
`seq 10000000 | tqdm --total 10000000 --null`