有一个文件,每行显示不同的文件路径。 ``` /the/first/path/file1 .... for i in $(cat my_file); do cd "$i"; done | grep -w string "$i"
``` 但这对我来说似乎行不通。我正在为所有文件目录获取此文件 -bash: cd: /the/first
我尝试过xargs,如下所示:Parallelize Bash script with maximum number of processes cpus=5 find ../*/*.exe | xargs --max-args=1 --max-procs=$cpus echo 我找不到运行它们的方法。Echo仅在屏幕上打印路径。