Here is a reference.
And why do people use tcsh and not bash? I find much more help with bash.
for example, in bash the name substitution will be shorter and more effective:
Quote:
convert $file ${file%.eps}.jpg
|
The form "${file%.eps}" cuts the shortest match of ".eps" from the end of the variable name $file (and symbol %% will cut the longest match of the expression that follows). On the other hand, "${file#.eps}" would do the same from the beginning.
Isn't it cool?
Sorry that I can't help about tcsh
.
So "${CALIBPLOTS}/y*.eps" is expanded as any "y*.eps" file in the "$CALIBPLOTS" directory, right?
In that case, it seems, in the expression "foreach file" it must be present in the same form in order to prevent the "/.eps" part from being added to the variable name?
Quote:
foreach file (${CALIBPLOTS}/y*.eps)
|