我用Windoes 7; Windows PowerShell中;豪華〜混帳FIND.EXE「:缺少參數`-exec」
find . -type f -name '*.php' -exec c:/unix2dos/bin/unix2dos '{}' +. \;
E:\TESSnip_Git\tesvsnip [tag-v4.3.0 +4 ~0 -0 | +0 ~308 -0]> find . -type f -name
'*.php' -exec c:/unix2dos/bin/unix2dos '{}' +. \;
"C:/Users/DanoPDX/AppData/Local/GitHub/PortableGit_054f2e797ebafd44a30203088cd3d
58663c627ef/bin/find.exe": missing argument to `-exec'
E:\TESSnip_Git\tesvsnip [tag-v4.3.0 +4 ~0 -0 | +0 ~308 -0]>
,如果我這行並不適用於Windows 7工作,並返回錯誤還。在我的道路「unix2dos」爲什麼我不能用它,而不指定它的確切路徑
你用'/ c/unix2dos/bin/unix2dos'試過了嗎?你用_pure git bash_來嘗試嗎? –
如果我嘗試「$ find。-type f -name'* .cs'-exec unix2dos'{}'+」。 gtom GitBash我明白了; 「找到:缺少參數到'-exec'」 – Sharlikran
如果我嘗試'找。 -type f -name'* .php'-exec c:/ unix2dos/bin/unix2dos'{}'+。 \「然後我得到這個; unix2dos:將文件./ObjectControls/RecordEditor.Designer.cs轉換爲DOS格式... unix2dos:跳過+。,不是常規文件。 – Sharlikran