This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc get_pathList(){ | |
string $fullPath = `file -q -sn`; | |
string $fileName = `file -q -sn -shn`; | |
string $dirName = dirname(`file -q -sn`); | |
print ("<<フルパス>> :: "+$fullPath+"\n"); | |
print ("<<ファイル名>> :: "+$fileName+"\n"); | |
print ("<<ディレクトリ名>> :: "+$dirName+"\n"); | |
} | |
get_pathList; |
割と忘れて、basenameコマンドやらなんやらを使いがち。。。
0 件のコメント:
コメントを投稿