Search
Project
General
Profile
Sign in
Home
Projects
Search
:
A painter and a black cat
All Projects
A painter and a black cat
Overview
Activity
News
Wiki
Files
Download (365 Bytes)
SharePointのドキュメントのURLが長いことに対する次善の策
» GetSharePointPATH.sh
SharePointのURLからなんかいい感じにするツール -
kanata
, 04/19/2025 03:39 PM
#!/bin/bash
# SharePointのURLからなんかいい感じにする ver 0.1
# 引数チェック
if
[
-z
"
$1
"
]
then
echo
"引数にURLが必要です"
exit
1
fi
# URLデコードして出力
echo
printf
'%b\n'
"
${
1
//%/\\x
}
"
|cut
-d
'?'
-f
1
# パンくずリスト生成
echo
printf
'%b\n'
"
${
1
//%/\\x
}
"
|cut
-d
'?'
-f
1|cut
-d
'/'
-f
7-|sed
's|/| > |g'
exit
0
(1-1/1)
Loading...