mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 19:44:33 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/aws-ce
Normal file
41
tldr/aws-ce
Normal file
@@ -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: <https://awe-ce-cli.documentation.com/latest/reference/awe-ce/index.html>.
|
||||
|
||||
- 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}}`
|
||||
22
tldr/read
22
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|...}}`
|
||||
|
||||
Reference in New Issue
Block a user