This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gtspring2009:howto:poincare [2009/03/22 10:33] gibson |
gtspring2009:howto:poincare [2010/02/02 07:55] (current) |
||
---|---|---|---|
Line 46: | Line 46: | ||
Instead of typing each of these out, you can use a bash for-loop, | Instead of typing each of these out, you can use a bash for-loop, | ||
- | for i in eq2_*eo.ff ; do tag=${i#eq2_} ; couette -T0 0 -T1 400 -o data-${tag%.e0.ff} $i ; done | + | for i in eq2_*e0.ff ; do tag=${i#eq2_} ; couette -T0 0 -T1 400 -o data-${tag%.e0.ff} $i ; done |
The ${...} stuff is bash string manipulation syntax to extract the numerical part of the input file names. | The ${...} stuff is bash string manipulation syntax to extract the numerical part of the input file names. |