script问题----运行多个文件# Unix - 噫吁兮,危乎高哉
e*r
1 楼
the problem I am having is that:
under a directory there are many data files with the same suffix,
for example,
control/a1.wp control/a2.wp ... control/a100.wp
I will have to run a program using the given data file to
output a new data file, for example
exec_program control/a1.wp control/a1new.wp
the problem is, since there are lots of *.wp files, it's really painful
for me to run all these one by one manually. I remember once I saw sth alike
was done by using sed. I want to know if there is a s
under a directory there are many data files with the same suffix,
for example,
control/a1.wp control/a2.wp ... control/a100.wp
I will have to run a program using the given data file to
output a new data file, for example
exec_program control/a1.wp control/a1new.wp
the problem is, since there are lots of *.wp files, it's really painful
for me to run all these one by one manually. I remember once I saw sth alike
was done by using sed. I want to know if there is a s