2020-07-29から1日間の記事一覧
sedを使っていらないものを削除。 sed のオプション d ... sedで削除 E ... sedの正規表現 source awsc.sh ; aws s3 ls s3://bucketname/path/to/file/ | awk '{print $2}' |sed -E '/.*[^\/]$/d' > folders.txt
while read do ..done < filename でできる while read f do echo $f done < load.txt
「;」を使って以下のように1行でかける secrets.sh ... 環境変数などの設定が書いてるシェル do.py ... その設定ファイルをもとに実行したいスクリプト $ source ./secrets.sh; sh do.py