for loop through files with spaces and some special characters

后端 未结 3 1183
难免孤独
难免孤独 2020-12-22 13:38

I need to run the following command with a for loop

cat Locate\\ Message.eml | ./locatePipe.php

I am trying the following however it seems

3条回答
  •  难免孤独
    2020-12-22 14:07

    I accomplished this using the following command

    find -name '*.eml' | while read email; do cat "$email" | ./locatePipe.php; done
    

提交回复
热议问题