Difference between revisions of "Dirname"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== Related terms == | == Related terms == | ||
* <code>[[PATH]]</code> [[environment variable]] | * <code>[[PATH]]</code> [[environment variable]] | ||
− | * [[mkdir -p]] | + | * <code>[[mkdir -p]]</code> |
− | * [[mkdir -p]] "$(dirname "$1")" && touch "$1" | + | * </code>[[mkdir -p]] "$(dirname "$1")" && touch "$1"</code> |
== See also == | == See also == |
Revision as of 01:18, 4 February 2022
dirname
command included in coreutils
package.
Related terms
PATH
environment variablemkdir -p
- mkdir -p "$(dirname "$1")" && touch "$1"
See also
- Coreutils,
tail
,dirname
,env
,sleep
,install, truncate
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: