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
#!/bin/bash | |
# SONY αのSDカードから画像と動画をまとめて読み込むスクリプト | |
# 読込元: 以下のFROM変数にパスを設定してください。 | |
# 読込先: このスクリプトが置かれている場所。 | |
# 使い方 | |
# このスクリプトとして保存してください。 | |
# 「import」というファイルを作ります。(ファイルを作った場所に写真などが読み込まれます。) | |
# 「import」にこの内容を書き込み、ファイルに実行権限を与える。 (コマンド→ chmod 755 import) |
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
#!/bin/zsh | |
# シンボリックリンク名 | |
LATESTLN="latest" | |
# リンクが既にあれば削除 | |
if [ -L ${LATESTLN} ] | |
then | |
rm ${LATESTLN} | |
fi | |
# 数値から始まる物を抽出し,最後の要素を取得する |