<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.specnext.dev/index.php?action=history&amp;feed=atom&amp;title=Dot%3Afind</id>
	<title>Dot:find - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.specnext.dev/index.php?action=history&amp;feed=atom&amp;title=Dot%3Afind"/>
	<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Dot:find&amp;action=history"/>
	<updated>2026-05-09T11:14:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Dot:find&amp;diff=11408&amp;oldid=prev</id>
		<title>Myopian at 22:53, 31 May 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Dot:find&amp;diff=11408&amp;oldid=prev"/>
		<updated>2020-05-31T22:53:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:53, 31 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.find . -type=f -name *.txt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.find . -type=f -name *.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Developer Tools]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(find all files in the current&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(find all files in the current&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key specnext_wiki:diff:1.41:old-11407:rev-11408:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Myopian</name></author>
	</entry>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Dot:find&amp;diff=11407&amp;oldid=prev</id>
		<title>Myopian: Add documentation for find command.</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Dot:find&amp;diff=11407&amp;oldid=prev"/>
		<updated>2020-05-31T22:52:23Z</updated>

		<summary type="html">&lt;p&gt;Add documentation for find command.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= .FIND dot command =&lt;br /&gt;
&lt;br /&gt;
To use, copy “FIND” to the sd card’s DOT directory.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.find&amp;lt;/code&amp;gt; entered on its own at the basic prompt will print help.&lt;br /&gt;
&lt;br /&gt;
This utility searches directories from the start directory for a particlar file matching criteria supplied on the command line.&lt;br /&gt;
&lt;br /&gt;
The help text is reproduced here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;find - search for files in a&lt;br /&gt;
  directory hierarchy&lt;br /&gt;
&lt;br /&gt;
.find DIR [OPTION]...&lt;br /&gt;
&lt;br /&gt;
Find files starting at DIR&lt;br /&gt;
that match provided criteria.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
.find . -type=f -name *.txt&lt;br /&gt;
&lt;br /&gt;
(find all files in the current&lt;br /&gt;
directory and below that end&lt;br /&gt;
in &amp;amp;quot;.txt&amp;amp;quot;)&lt;br /&gt;
&lt;br /&gt;
All word options accept single&lt;br /&gt;
or double leading hyphens.&lt;br /&gt;
&lt;br /&gt;
CRITERIA&lt;br /&gt;
&lt;br /&gt;
-exec&lt;br /&gt;
  file must be an executable&lt;br /&gt;
  bas dot nex o p sna snx&lt;br /&gt;
  tap z80&lt;br /&gt;
&lt;br /&gt;
-mindepth N, -mindepth=N&lt;br /&gt;
  ignore until at least N&lt;br /&gt;
  directory levels traversed&lt;br /&gt;
&lt;br /&gt;
-maxdepth N, -maxdepth=N&lt;br /&gt;
  ignore if more than N&lt;br /&gt;
  directory levels traversed&lt;br /&gt;
&lt;br /&gt;
-mmin N, -mmin=N&lt;br /&gt;
  (not implemented yet)&lt;br /&gt;
&lt;br /&gt;
-mtime N, -mtime=N&lt;br /&gt;
  (not implemented yet)&lt;br /&gt;
&lt;br /&gt;
-name S, -name=S&lt;br /&gt;
  lfn name must match S&lt;br /&gt;
  S can contain *? wildcards&lt;br /&gt;
&lt;br /&gt;
-prune S, -prune=S&lt;br /&gt;
  ignore directory S&lt;br /&gt;
  S can contain *? wildcards&lt;br /&gt;
  else S is a canonical name&lt;br /&gt;
&lt;br /&gt;
-size N, -size=N&lt;br /&gt;
  if N&amp;amp;gt;0 file must be at least&lt;br /&gt;
    N bytes in size&lt;br /&gt;
  if N&amp;amp;lt;0 file must be less than&lt;br /&gt;
    N bytes in size&lt;br /&gt;
  N can have a suffix modifier:&lt;br /&gt;
    &amp;amp;quot;b&amp;amp;quot; : * 512&lt;br /&gt;
    &amp;amp;quot;c&amp;amp;quot; : * 1&lt;br /&gt;
    &amp;amp;quot;w&amp;amp;quot; : * 2&lt;br /&gt;
    &amp;amp;quot;k&amp;amp;quot; : * 1024&lt;br /&gt;
    &amp;amp;quot;M&amp;amp;quot; : * 1048576&lt;br /&gt;
&lt;br /&gt;
-type T, -type=f, -type=d&lt;br /&gt;
  must be a file, directory&lt;br /&gt;
&lt;br /&gt;
DISPLAY&lt;br /&gt;
&lt;br /&gt;
-lfn=on&lt;br /&gt;
  print matches with lfn names&lt;br /&gt;
&lt;br /&gt;
-lfn=off&lt;br /&gt;
  print matches with 8.3 names&lt;br /&gt;
&lt;br /&gt;
-lfn=both&lt;br /&gt;
  print matches w/ both names&lt;br /&gt;
&lt;br /&gt;
ACTION&lt;br /&gt;
&lt;br /&gt;
-cd N, -cd=N&lt;br /&gt;
  change to the directory of&lt;br /&gt;
  the Nth match and exit&lt;br /&gt;
&lt;br /&gt;
OTHER&lt;br /&gt;
&lt;br /&gt;
-help&lt;br /&gt;
  print this help and exit&lt;br /&gt;
&lt;br /&gt;
-version&lt;br /&gt;
  print version info and exit&lt;br /&gt;
&lt;br /&gt;
find 1.1 zx-next 128k z88dk.org&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
# Locate all exectuables in the current directory and below. Executables are defined as “nex o p sna snx tap z80” types.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.find . -exec&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start=&amp;quot;2&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Locate the 20th executable and change directory to that. Use &amp;lt;code&amp;gt;.run&amp;lt;/code&amp;gt; to run the program.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;.find . -exec -cd=20&lt;br /&gt;
.run castelvania.tap&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;3&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Locate all text files between 1k and 10k in size.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.find . -name *.txt -size 1k -size -10k&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Find all games with batman in the name.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.find . -exec -name *batman*&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Filename matches are only applied against the long filename. The matching uses wildcards &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt; which can match any character including &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compiling ==&lt;br /&gt;
&lt;br /&gt;
Source [https://gitlab.com/thesmog358/tbblue/-/tree/master/src/c/DotCommands/find here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;zcc +zxn -v -startup=30 -clib=sdcc_iy -SO3 --max-allocs-per-node200000 --opt-code-size @zproject.lst -o find -pragma-include:zpragma.inc -subtype=dotn -Cz&amp;amp;quot;--clean&amp;amp;quot; -create-app&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Myopian</name></author>
	</entry>
</feed>