AminetAminet
Search:
84520 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/batch/Namefile1_11.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Extracts filename from path:to/filename combination
Author:David Zvekic (cs922097 at ariel.cs.yorku.ca)
Uploader:David Zvekic (cs922097 ariel cs yorku ca)
Type:util/batch
Version:1.11
Architecture:m68k-amigaos
Date:1995-05-02
Download:http://aminet.net/util/batch/Namefile1_11.lha - View contents
Readme:http://aminet.net/util/batch/Namefile1_11.readme
Downloads:479

                                 Namefile 1.11
                                by David Zvekic
                                ~~~~~~~~~~~~~~~
Namefile is public domain.  You can do whatever you like with it.  You can
sell it without telling me, you can make your own Namefile clone and I
wouldn't even care.  Just whatever you do, don't blaim me if you think
Namefile crashed your system, because I won't care. :P

Intro
^^^^^^
    This is a little program I wrote which I find useful at times inside
    amigados scripts.  It is only 6000 bytes long and fits in my C: nicely.

What Namefile does
^^^^^^^^^^^^^^^^^^^
    Namefile will return the filame part of the argument. The argument
    may be a file name, optionally with a complete path.

Examples:

            Work:> namefile s:startup-sequence
            startup-sequence

            Work:> namefile work:games/MegaBallAGA/MEGABALL
            MEGABALL

            Work:> namefile work:games/MegaBallAGA
            MegaBallAGA

    *note blank lines inserted for clarity*


If you put a \n as your 2nd argument then namefile will not output
a carriage return after the file name.  i.e.: namefile c:dir \n

Thats about it. :-)

Please feel free to write me at my email address:


               cs922097 at ariel.cs.yorku.ca

or

                David Zvekic
                74 Briarwood rd
                Unionville, Ont.
                L3R 2X3
                *Canada*

PS: I've included the HSPascal Source Code.





Contents of util/batch/Namefile1_11.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  563    2273  24.8% -lh5- ab66 May  2  1995 Namefile1_11.info
[generic]                 3888    5872  66.2% -lh5- daa6 Apr 28  1995 Namefile1_11/Namefile
[generic]                  701    1482  47.3% -lh5- 9c72 Apr 28  1995 Namefile1_11/Namefile.documentation
[generic]                  258     358  72.1% -lh5- 5a39 May  2  1995 Namefile1_11/Namefile.documentation.info
[generic]                 1068    3619  29.5% -lh5- 8f2d May  2  1995 Namefile1_11/Namefile.info
[generic]                  299     527  56.7% -lh5- 3024 Apr 28  1995 Namefile1_11/Namefile.pas
[generic]                  924    3638  25.4% -lh5- a649 May  2  1995 Namefile1_11/Namefile.pas.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         7 files    7701   17769  43.3%            May  2  1995

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>