# パス. フルパス→ディレクトリ名(dirname)

# Bash

dirname $path
${path%/*}

# Excel

=LEFT(A1,FIND(">",SUBSTITUTE(A1,"/",">",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))),1)-1)

# PowerShell

Split-Path -Leaf $fullpath

# Python

os.path.dirname(path)

# Ruby

File.dirname(path)

[ 📩 ご意見 ]