Difference between revisions of "Basename"

From wikieduonline
Jump to navigation Jump to search
(Created page with " usage")
Tags: Mobile web edit, Mobile edit
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
 +
[[wikipedia:basename]] <ref>https://man7.org/linux/man-pages/man1/basename.1.html</ref> strip [[directory]] and suffix from filenames
  
 +
basename .
 +
.
  
 +
[[Terraform]]
 +
locals {
 +
  name  = "example-${[[replace]](basename([[path.cwd]]), "_", "-")}"
 +
  region = "eu-west-1"
 +
  tags = {
 +
    Owner      = "user"
 +
    Environment = "dev"
 +
  }
 +
}
  
[[usage]]
+
== Related ==
 +
* <code>[[dirname]]</code>
 +
* <code>[[pwd]]</code>
 +
* <code>[[usage]]</code>
 +
* <code>[[$PATH]]</code>
 +
* <code>[[readlink]]</code>
 +
* [[brew --prefix]]
 +
 
 +
== See also ==
 +
* {{Bash}}
 +
 
 +
[[Category:Bash]]

Latest revision as of 09:04, 1 April 2024

Advertising: