Re: copy and move files



Charles Russell wrote:
Fluid wrote:

Hi, i need help.i am a quite new user of fortran. I would like to
rename a file (used as input file) and move it to another directory.
Which command can I use?
thanks

If you are indeed a *user* rather than a *programmer*, you may find it simpler to separate the math from the housekeeping, and call both your fortran code and the system utilities from a makefile, a shell script, or one of the many scripting languages.

Perhaps this was too terse for a novice, so I'll elaborate. Fortran is easy if you stick to math, but otherwise things can get quite complicated. So for simplicity do the math in fortran, try to find some simple high-level tool for anything else, and glue everything together in a script. I usually do this with an extra target or two in the same makefile that builds the fortran executable. Learning to use makefiles (and to build libraries) is worth the hassle even for an occasion/casual *user*.
.



Relevant Pages

  • Re: IF DEAD, GOTO 10-3-39
    ... mathematically its the exact same thing. ... The original topic was how FORTRAN finally ... made math computation easily manageable. ... I don't consider programming in assembler to be ...
    (rec.sport.football.college)
  • Re: I want to write HAL in C++ !
    ... > recursive descent parsing for arbitrarily complex math FORmulas, ... On the subject of Fortran you are obnoxious and ignorant. ... been spelled with all upper caps since the 1990 standard. ... Do you think libraries like LAPACK are "fragile cruft"? ...
    (comp.lang.cpp)
  • Re: Need help with PHP & SQL code, new to this.
    ... > I am trying to pull a time stamp out of a database,looks like this ... Why not just do the math on ... - assigning each to a variable within your script. ... date/time string below for ease, but you would populate them using the ...
    (comp.lang.php)
  • Re: IF DEAD, GOTO 10-3-39
    ... mathematically its the exact same thing. ... The original topic was how FORTRAN finally ... made math computation easily manageable. ... tortuous COBOL, and even that is a pain in the ass. ...
    (rec.sport.football.college)
  • Re: bash: WHY???
    ... shell), that's more of a sign that you should be writing in a different ... > to sh, had all of the cool math functions, command line editing and command ... use an array in a script on the fingers of one hand. ...
    (comp.unix.solaris)