シェルスクリプトを書いていると、タイトルのようなエラーがでることがあります。
timestamp = $(stat $item | grep Modify)
echo "$timestamp"
----------------------
# 出力
Command 'timestamp' not found, but can be installed with:
sudo apt install irpas
原因は変数名の定義部分にスペースが入っていることです。
timestamp=$(stat $item | grep Modify)
としてあげましょう。