Difference between revisions of "Basename"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
[[usage]] | [[usage]] | ||
+ | [[Terraform]] | ||
+ | locals { | ||
+ | name = "example-${replace(basename([[path.cwd]]), "_", "-")}" | ||
+ | region = "eu-west-1" | ||
+ | tags = { | ||
+ | Owner = "user" | ||
+ | Environment = "dev" | ||
+ | } | ||
+ | } | ||
− | + | == See also == | |
− | {{Bash}} | + | * {{Bash}} |
Revision as of 12:45, 7 June 2022
locals { name = "example-${replace(basename(path.cwd), "_", "-")}" region = "eu-west-1" tags = { Owner = "user" Environment = "dev" } }
See also
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: