From 7f2392a93f1e56893f86ccfea95fcd91a86dfe53 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 15 Jan 2025 00:17:16 +0000 Subject: [PATCH] Update cheatsheets --- tldr/egrep | 2 +- tldr/grep | 2 +- tldr/linux/informant | 25 +++++++++++++++++++++++++ tldr/linux/qmake | 29 +++++++++++++++++++++++++++++ tldr/tqdm | 13 +++++++++++++ 5 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 tldr/linux/informant create mode 100644 tldr/linux/qmake create mode 100644 tldr/tqdm diff --git a/tldr/egrep b/tldr/egrep index 334e31ec..b3c016b3 100644 --- a/tldr/egrep +++ b/tldr/egrep @@ -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: . - Search for a pattern within a file: diff --git a/tldr/grep b/tldr/grep index 2857b7c0..f50336e8 100644 --- a/tldr/grep +++ b/tldr/grep @@ -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}}` diff --git a/tldr/linux/informant b/tldr/linux/informant new file mode 100644 index 00000000..74c52739 --- /dev/null +++ b/tldr/linux/informant @@ -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: . + +- Read all unread news: + +`sudo informant read` + +- Check for news: + +`informant check` + +- List latest news: + +`informant list` + +- Display help: + +`informant --help` diff --git a/tldr/linux/qmake b/tldr/linux/qmake new file mode 100644 index 00000000..97efe9d0 --- /dev/null +++ b/tldr/linux/qmake @@ -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: . + +- 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` diff --git a/tldr/tqdm b/tldr/tqdm new file mode 100644 index 00000000..cd10eb83 --- /dev/null +++ b/tldr/tqdm @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tqdm + +> Create a progress bar. +> More information: . + +- Create a progress bar: + +`seq 10000000 | tqdm --total 10000000 --null`