我的每一個文件遍歷一個目錄,並試圖查找/替換用下面這段代碼的文件的路徑部分...查找/上的文件名稱替換使用的sed
for f in /the/path/to/the/files/*
do
file = $(echo $f | sec 's/\/the\/path\/to\/the\/files\///g`);
done
然而,我的代碼賦值部分出現以下錯誤...
cannot open `=' (No such file or directory)
我在做什麼錯了?