Results 1 to 5 of 5
Hi
how to run a command on all files with the same extension in a directory like this:
Code:
tex breqn.dtx; tex empheq.dtx; tex flexisym.dtx; tex mathstyle.dtx; tex mathtools.dtx; tex ...
- 11-10-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 15
run same command on multiple files with same extension
Hi
how to run a command on all files with the same extension in a directory like this:
but in a simpler manner?Code:tex breqn.dtx; tex empheq.dtx; tex flexisym.dtx; tex mathstyle.dtx; tex mathtools.dtx; tex mhsetup.dtx; tex xfrac.dtx;
thank you
Ps: As you see I am really a newbie!
I found this:
but isn't there something simpler?Code:find . -type f -name *.dtx -exec tex {} \;Last edited by louisJ; 11-10-2010 at 11:48 AM. Reason: new info
- 11-10-2010 #2Just Joined!
- Join Date
- Oct 2006
- Location
- France
- Posts
- 18
Hello.
It depends on which action you want to make on those files with tex. Right ?
(in the mean time tex.ac.uk/cgi-bin/texfaq2html looks like a good site)
- 11-10-2010 #3Just Joined!
- Join Date
- Nov 2010
- Posts
- 15
they are scripts runnable by tex, so nothing, just tex file.dtx
- 11-10-2010 #4
maybe this:
tex *.dtx
'*' being a wildcard matching anything. is exactly like the "find" except this is a simple way to do it in a single directory.
- 11-10-2010 #5Just Joined!
- Join Date
- Nov 2010
- Posts
- 15


Reply With Quote
