我刚才认为,我找到了解决办法,因为指挥官在我的试验台工作。
grep -H -e author="[^"].* *.xml | cut -d: -f1 | xargs -I {} mv {} mydir/.
But using the command in the non-test-direcory the command did not work: This is the error message:
grep: unknown option -- O Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help for more information.
甚至没有这样做:
$ grep -H author *.xml
或
$ grep -H author *.xml
(错误信息)
I suspect it has some relation to the file names or the amount of files. I have almost 3000 files in the non-test-directory and only 20 in my test directory. In both directories almost all file names contain spaces and " - ".
更多信息:
- I m using Cygwin.
- I am not allowed to change the filenames