OS4 DepotLogo by McFly 
(anonymous IP: 

   Bug tracker
   Locale browser

   o Audio (321)
   o Datatype (47)
   o Demo (176)
   o Development (483)
   o Document (18)
   o Driver (81)
   o Emulation (130)
   o Game (762)
   o Graphics (415)
   o Library (64)
   o Network (181)
   o Office (49)
   o Utility (714)
      o Archive (57)
      o Benchmark (12)
      o Communication (2)
      o Docky (22)
      o Filetool (116)
      o Hardware (19)
      o Misc (136)
      o Print (7)
      o Scientific (30)
      o Script (18)
      o Shell (81)
      o Text (84)
      o Workbench (130)
   o Video (56)

Total files: 3497

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Utility » Shell » showfiles.lha

ShowFiles (SF)

Description: DIR command - shows a sorted & text-formatted list
Download: showfiles.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 30kb
Version: 0.943
Date: 09 Feb 14
Author: Marko K. Seppänen
Submitter: Marko Seppänen
Homepage: http://www.m4rko.com/amiga/software/showfiles/
Requirements: locale.library V48+ or DOS V50.36+ if locale not available
Category: utility/shell
Replaces: utility/shell/showfiles.lha
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 8625
Comments: 29  [View]
Snapshots: 3  [View]
Downloads: 82  (Current version)
1213  (Accumulated)

Show content Show crashlogs Replace file 
**                                                                        **
**  This version 0.943 is BUGFIXED and VERIFIED for option ALL.           **
**  Sorry for the inconvience.                                            **
**  Thanks to Guillaume Boesel (zzd10h), Joel Edberg (Joeled) and SMF :)  **
**  (PS: This should work, if not, let me know ;) )                       **
**                                                                        **

ShowFiles (SF) - 0.943

DIR/LIST command - displays a sorted and text-formatted list.

ShowFiles (SF) is yet another DIR command (written in C).  It displays a sorted
and text-formatted list of files, drawers (dirs) and soft/hard-links on disk or
other storage medium. It will also display their additional information such as
size,  date,  possible comment,  executable  header type  (68k or PPC program),
protection-bits, etc, etc.

It supports a number of different options/switches,  after installation  in the
Shell, please type "sf HELP" (or "sf --help") for listing all options/switches.
Or look in the .doc-file in the archive.

(Back in 2011 ShowFiles (SF) was named (DF) DisplayFiles.)

- Abbreviated as SF or just sf, fast and easy to type in the shell.
- Dirs/drawers are displayed in blue color (pen 3).
- Hard/Softlinks are displayed underscored (underlined).
- Shows where any Hard/Softlinks points to.
- Possible comments are displayed in italic.
- Displays the "primitive" file type of files.
- Fetches and identifies executable headers. 68k, PPC (ELF), EXE, among others.
- Displays the Amiga file protection bits of files.
- Shows free disk space and sizes in KiB (1024), kB (1000) and bytes.
- Options for sorting by size and time/date.
- Option for reversing the output list.
- Options for displaying only files, dirs or links. Or intermix them.
- Option for only listing m680x0 (68k) executables (AmigaOS 3.x).
- Option for only listing PowerPC (PPC) executables (ELF headers).
- ALL option for showing all files and dirs in directories and subdirs.
- Option to "trail" files with an initial character ('/', '*' or (at)-char).
- Possibility to specify a path to display.
- Shows OwnerUID, OwnerGID, UseCount and ObjectID (as reported by DOS).
- Supports multiple formats of options/switches (f.ex: TIME --time -t /T).
- Supports automatic updates through AmiUpdate.
- Written (in C) and developed on Amiga for Amiga.

Special notes for this release
- Version 0.943 with option ALL was BUGFIXED and VERIFIED.
  This exact compile was tested on A1-X1000 by Guillaume Boesel (zzd10h),
  on Sam460ex by Joel Edberg (Joeled) and on author's Sam440ep-flex.
- This release was focused on stability and error handling.
- CHANGE: All one-single-letter options such as a, -m, /P are now case
  sensitive, where as non-single-letter options are not. Reason for this
  is because available free letters are becomming scarce for more options.
- Changed single letter option h to ?, because of above reason.
- ADDED: 68K, --68k, -6 and /6 option(s) for only listing all 68k executables.
- ADDED: PPC, --ppc, -P and /P option(s) for only listing all PPC (ELF)
- Just to make sure, expect continued development of this command.
- Back in 2011 ShowFiles (SF) was renamed from DisplayFiles (DF) because DF
  clashed with the UNIX/Linux command df.
- For more info and details see the .doc-file in the archive.

Displaying dir-listings
There are 3 main OUTPUT VIEWS for displaying dir-listings, typing the
following (without the "Shell:>" string):

Shell:> sf
= displays all the files in current dir with the *DEFAULT* view.

Shell:> sf MORE
Shell:> sf -m
= displays a list with more specific information including what exe type a file
is (PPC (ELF), 68k, exe etc.)

Shell:> sf CLARIFY
Shell:> sf -c
= displays an even more clarified list of specific information.

More examples
Options can be written in any of the four different types. For example MORE,
--MORE, -m, /m, more and --more, are all the same option.
However, one single letter options such as m, -p, P, /H, etc are case-
sensitive, non-single letter options are not.

Shell:> sf 68K
Shell:> sf -6
= lists only 68K executables.

Shell:> sf TIME
Shell:> sf -t
= sorts by time/date (oldest first).

Shell:> sf -t -r
= sorts by time/date (newest/latest first).

Shell:> sf DIRS
Shell:> sf -d
= displays only drawers (dirs).

Shell:> sf -s -r
= displays a list of files sorted by size, the biggest at the top.

Shell:> sf ALL
Shell:> sf -a
= displays all files and dirs in a directory and its sub-directories.

Shell:> sf sobjs: -l -c
= displays only links in the dir/assignment called sobjs:

Shell:> sf HELP
Shell:> sf --help
Shell:> sf -?
Shell:> sf /?
= displays the help with a list of all switches/commands.

- When fetching for exe-files (using MORE or CLARIFY option, SF doesn't
(yet) recognize the architecture for MacOS files, it does only recognize
if it's an exe-file (for what ever architecture) or not.)

Just run the file ShowFiles.Install, 
* Copy the file ShowFiles to your C:
* Type the following and hit enter:
  C:MakeLink C:SF C:ShowFiles SOFT FORCE
* Copy the documentation to SYS:Documentation/C/ 
* Done!

Requires locale.library V48+ or DOS V50.36+ if locale not available.

Version 0.943: (Feb 2014)
  - *BUGFIXED* and *VERIFIED* option ALL. This exact compile (10:23 2014-02-09)
    was verified by Guillaume Boesel (zzd10h) and Joel Edberg (Joeled).
Version 0.942: (Feb 2014)
  - Bugfixed option ALL. (Edit: Oh no bummer, still something fishy, sorry
    for the inconvience. Thanks for the heads-up zzd10h and SMF.)
Version 0.942d1: (Feb 2014)
  - Debug-version for option ALL. (Thanks for testing Guillaume Boesel (zzd10h)
    on AmigaOne X1000 and Joel Edberg (Joeled) for testing on Sam460ex. Also
    runs fine on my (the author's) Sam440ep-flex with AmigaOS 4.1 Update 6.)
Version 0.941: (Jan 2014)
  - AmiUpdate fix, AutoInstall file included again, it did escape for some
    mysterious reason ( ;) ) in the last archive. (Thanks zzd10h)
  - Option for showing the manual has been removed (since it's ever growing)
    and at least 10 KiB (20%) has been shaved off the ShowFiles executable. See
    the .doc file instead in the archive or SYS:Documentation/C/ShowFiles.doc.
  - Fixes in readme/documentation, some last minute typos did crawl into the
    last upload.
Version 0.940: (Jan 2014)
  - Bugfix for DSI crash in option ALL, reported by Guillaume Boesel (zzd10h),
    resulting in a total rewrite of the ALL-option specific part.
  - Fixed bug, row-break/new-line issue in the footer.
  - Much improved error handling and stability with more graceful exit.
  - In addition to above, fixed/updated several error-messages, numbered them
    as well for referencing purpose.
  - Added 68K, --68k, -6 and /6 option(s) for only listing all 68k executables.
  - Added PPC, --ppc, -P and /P option(s) for only listing all PPC (ELF)
  - CHANGE: All one single letter options such as a, -m, /? are now case
    sensitive, where as non-single-letter options are not. This is because
    available free letters for more options are becomming scarce.
  - Changed single letter option h to ? (because of above reason).
  - Added get_verstag function for returning the VERSTAG.
  - Comments in output are now in italic black on grey for better visibility.
  - Output header now in bold on grey for better visibility.
  - Output footer now in italic for better visibility.
  - Dirs in output are now also in bold for better visibility.
  - Other minor bugfixes and further fixes and typos in readme/documentation.
Version 0.930: (Jan 2014)
  - ALL option added, for displaying all subdirectories and their items.
  - File installation structure changed, no dir with extra files copied to C:
    or anywhere else anymore.
  - Changed so "PPC" is shown rather than "elf" in dir listings.
  - Compiled with the latest updated SDK (version 53.24).
  - Typos and minor fixes in readme/documentation.
Version 0.923: (Dec 2013)
  - Bugfix regarding links not being underlined or marked in output. (PS: That
    bug was kind of hard to track and hunt down but now resolved ;) )
  - File comments and link arrows now also in white (pen 2).
  - More bugfixes in AutoInstall, Install and UnInstall scripts.
Version 0.922: (Dec 2013)
  - Bugfixes in AutoInstall, Install and UnInstall scripts.
  - Minor typos in readme fixed.
Version 0.921: (Jan 2013)
  - Moved AutoInstall to the root.
Version 0.92: (Dec 2012)
  - Fixed bug, "Total size listed is always 0 in the footer."
  - Fixed the AutoInstall, there were some unknown parameters (oops).
  - Changed the footer info so files and dirs are separate, and items is the
    total of those, among other minor there in the footer.
Version 0.91: (Dec 2012)
  - Fixed a serious bug introduced in version 0.9 after adding options.
  - Changed file structure, Install, Uninstall and AutoInstall scripts to the 
    one structure suggested by cha05e90, where no dir is created C: .
  - Added credits and made lots of improvments to the documentation, except
    for what's new.
  - Changed the primitive file type "Exe" back to "Exec" (as it was in the
    beginning), since "Exe" is a type of Executable-Header).
  - Fixed a few other minor bugs (AmiUpdate bug among others (hopefully)).
Version 0.9: (Dec 2012)
  - Added options for FILES, DIRS, and LINKS, it is also possible to
    intermix them.
  - Changed the name for "EHead" to "Exe" (and "eh" to "e").
  - Fetching of exe-headers -> little faster (some code cleaned up there).
  - Updated Install/Uninstall scripts further, to be more safer and error
    resistant, and typos fixed.
  - Updated the documentation some further, except for documenting what's new.
  - Output slightly changed.
Version 0.8: (Nov 2012)
  - DF (DisplayFiles) renamed to ShowFiles (SF) because DF was clashing with
    the UNIX/Linux command df, (thanks Beeblebrox). ShowFiles was the winning
    name on a Poll on AmigaWorld.net 2011, the name was suggestied by kas1e).
  - New: Added install and uninstall scripts, and links to executable.
  - Changed the structure of files (the executable file, links, doc-file, etc).
  - Updated AutoInstall to reflect the renaming to ShowFiles and the new
    file structure.
  - ShowFiles is now out of Beta (with regard to the base engine).
Beta 7 - (0.7): (Apr 2011)
  - Added info to footer-output about amount of dirs listed.
  - Fixed bug, "dirs and files with same size are not sorted when sorting

    (See the doc/manual for more information.)

Thank You
Thank you to everyone giving help, feedback, bug/error-reports and suggestions.

This software is freeware.

Feel free to make a donation by using PayPal:
marko . seppanen // g m a i l. com (without spaces)

Marko K. Seppänen


Copyright (c) 2004-2014 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment