シェルスクリプトは、エンジニアの日常業務を大幅に効率化する武器です。ログローテーション、バックアップ、データ処理、API連携など、繰り返し実行する作業を自動化できます。本記事では、bashスクリプトの基礎から実務レベルの30のレシピまで、段階 ...
今回は Bash(読み:バッシュ)のミニスクリプトを書いて、実行→引数→繰り返し→安全運用まで一気に体験します。 ※Shebang(シバン)=#!/usr/bin/env bash は「このファイルは bash で動かすよ」の宣言。
and only files matching my_test_here would make it onto do_something. I love the while-read pattern, but it just doesn't feel right that there's no simpler, built-in, idiomatic way to write a function ...