Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の行を持っています:
for FILE in $(find "${DIR}" -type f -mtime +14 -level 0)
問題は、「New Document.txt」という名前のファイルがある場合、最初のパスでは$ FILEの値が「New」になり、2番目のパスでは「Document」になります。ファイル名をまとめるにはどうすればよいですか?
それが違いを生むのであれば、私はこれをWindows環境で実行しています。
forループを使用する代わりに、whileループを使用します
find "${DIR}" -type f -mtime +14 -level 0 |while read FILE do ls -l "${FILE}" done
幸運を