From 815ce2b4c6dd0f40a7ac73ae4c05d9a4e0e864b2 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 6 Aug 2024 00:15:17 +0000 Subject: [PATCH] Update cheatsheets --- tldr/aws-ce | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/read | 22 +++++++++++++++++++++- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 tldr/aws-ce diff --git a/tldr/aws-ce b/tldr/aws-ce new file mode 100644 index 00000000..7530b814 --- /dev/null +++ b/tldr/aws-ce @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# awe-ce + +> Analyze and manage access controls and security settings within your Cloud Environment. +> More information: . + +- Create a new Access Control Analyzer: + +`awe-ce create-analyzer --analyzer-name {{analyzer_name}} --type {{type}} --tags {{tags}}` + +- Delete an existing Access Control Analyzer: + +`awe-ce delete-analyzer --analyzer-arn {{analyzer_arn}}` + +- Get details of a specific Access Control Analyzer: + +`awe-ce get-analyzer --analyzer-arn {{analyzer_arn}}` + +- List all Access Control Analyzers: + +`awe-ce list-analyzers` + +- Update settings of an Access Control Analyzer: + +`awe-ce update-analyzer --analyzer-arn {{analyzer_arn}} --tags {{new_tags}}` + +- Create a new Access Control Analyzer archive rule: + +`awe-ce create-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}} --filter {{filter}}` + +- Delete an Access Control Analyzer archive rule: + +`awe-ce delete-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}}` + +- List all Access Control Analyzer archive rules: + +`awe-ce list-archive-rules --analyzer-arn {{analyzer_arn}}` diff --git a/tldr/read b/tldr/read index 9b853ecd..99df03e4 100644 --- a/tldr/read +++ b/tldr/read @@ -12,10 +12,30 @@ source: https://github.com/tldr-pages/tldr.git `read {{variable}}` +- Store each of the next lines you enter as values of an array: + +`read -a {{array}}` + +- Specify the number of maximum characters to be read: + +`read -n {{character_count}} {{variable}}` + +- Assign multiple values to multiple variables: + +`{{echo "The name is Bond"}} | read {{_ variable1 _ variable2}}` + - Do not let backslash (\) act as an escape character: `read -r {{variable}}` -- Read `stdin` or file and perform an action on every line: +- Display a prompt before the input: + +`read -p "{{Enter your input here: }}" {{variable}}` + +- Do not echo typed characters (silent mode): + +`read -s {{variable}}` + +- Read `stdin` and perform an action on every line: `while read line; do {{echo|ls|rm|...}} "$line"; done < {{/dev/stdin|path/to/file|...}}`