summaryrefslogtreecommitdiff
path: root/nuttx/Documentation
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-18 08:24:29 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-18 08:24:29 -0600
commit54fdd99901b8db5ba275ea9c1f3f56efe24232ad (patch)
tree92da53e2c07893a7e8f019203d137e45c5c8eac2 /nuttx/Documentation
parent2e8e47d417fb0b1e5b2386548f9c308fd74edec9 (diff)
downloadpx4-nuttx-54fdd99901b8db5ba275ea9c1f3f56efe24232ad.tar.gz
px4-nuttx-54fdd99901b8db5ba275ea9c1f3f56efe24232ad.tar.bz2
px4-nuttx-54fdd99901b8db5ba275ea9c1f3f56efe24232ad.zip
NSH cmp command by Andrew Twidgell
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r--nuttx/Documentation/NuttShell.html199
1 files changed, 114 insertions, 85 deletions
diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html
index a814813c5..99510817b 100644
--- a/nuttx/Documentation/NuttShell.html
+++ b/nuttx/Documentation/NuttShell.html
@@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
- <p>Last Updated: April 30, 2013</p>
+ <p>Last Updated: July 18, 2013</p>
</td>
</tr>
</table>
@@ -113,253 +113,259 @@
<tr>
<td><br></td>
<td>
- <a href="#cmdcp">2.6 Copy Files (cp)</a>
+ <a href="#cmdcmp">2.6 Compare Files (cmp)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmddate">2.7 Show or set the date and time (date)</a>
+ <a href="#cmdcp">2.7 Copy Files (cp)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmddd">2.8 Copy and Convert Files (dd)</a>
+ <a href="#cmddate">2.8 Show or set the date and time (date)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmddf">2.9 Show volume status (df)</a>
+ <a href="#cmddd">2.9 Copy and Convert Files (dd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdecho">2.10 Echo Strings and Variables (echo)</a>
+ <a href="#cmddf">2.10 Show volume status (df)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdexec">2.11 Execute User Code (exec)</a>
+ <a href="#cmdecho">2.11 Echo Strings and Variables (echo)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdexit">2.12 Exit NSH (exit)</a>
+ <a href="#cmdexec">2.12 Execute User Code (exec)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdfree">2.13 Show Memory Manager Status (free)</a>
+ <a href="#cmdexit">2.13 Exit NSH (exit)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdget">2.14 Get File Via TFTP (get)</a>
+ <a href="#cmdfree">2.14 Show Memory Manager Status (free)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdhelp">2.15 Show Usage Command Usage (help)</a>
+ <a href="#cmdget">2.15 Get File Via TFTP (get)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdhexdump">2.16 Hexadecimal Dump of File or Device (hexdump)</a>
+ <a href="#cmdhelp">2.16 Show Usage Command Usage (help)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdifconfig">2.17 Manage Network Configuration (ifconfig)</a>
+ <a href="#cmdhexdump">2.17 Hexadecimal Dump of File or Device (hexdump)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdifdown">2.18 Take a network down (ifdown)</a>
+ <a href="#cmdifconfig">2.18 Manage Network Configuration (ifconfig)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdifup">2.19 Bring a network up (ifup)</a>
+ <a href="#cmdifdown">2.19 Take a network down (ifdown)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdkill">2.20 Send a signal to a task (kill)</a>
+ <a href="#cmdifup">2.20 Bring a network up (ifup)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdlosetup">2.21 Setup/teardown the Loop Device (losetup)</a>
+ <a href="#cmdkill">2.21 Send a signal to a task (kill)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdls">2.22 List Directory Contents (ls)</a>
+ <a href="#cmdlosetup">2.22 Setup/teardown the Loop Device (losetup)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmd5">2.23 Calculate MD5 (md5)</a>
+ <a href="#cmdls">2.23 List Directory Contents (ls)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmbhw">2.24 Access Memory (mb, mh, and mw)</a>
+ <a href="#cmdmd5">2.24 Calculate MD5 (md5)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdps">2.25 Show Current Tasks and Threads (ps)</a>
+ <a href="#cmdmbhw">2.25 Access Memory (mb, mh, and mw)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmkdir">2.26 Create a Directory (mkdir)</a>
+ <a href="#cmdps">2.26 Show Current Tasks and Threads (ps)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmkfatfs">2.27 Create a FAT Filesystem (mkfatfs)</a>
+ <a href="#cmdmkdir">2.27 Create a Directory (mkdir)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmkfifo">2.28 Create a FIFO (mkfifo)</a>
+ <a href="#cmdmkfatfs">2.28 Create a FAT Filesystem (mkfatfs)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmkrd">2.29 Create a RAMDISK (mkrd)</a>
+ <a href="#cmdmkfifo">2.29 Create a FIFO (mkfifo)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmount">2.30 Mount a File System (mount)</a>
+ <a href="#cmdmkrd">2.30 Create a RAMDISK (mkrd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdmv">2.31 Rename a File (mv)</a>
+ <a href="#cmdmount">2.31 Mount a File System (mount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdnfsmount">2.32 Mount an NFS file system (nfsmount)</a>
+ <a href="#cmdmv">2.32 Rename a File (mv)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdping">2.33 Check Network Peer (ping)</a>
+ <a href="#cmdnfsmount">2.33 Mount an NFS file system (nfsmount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdput">2.34 Send File Via TFTP (put)</a>
+ <a href="#cmdping">2.34 Check Network Peer (ping)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdpwd">2.35 Show Current Working Directory (pwd)</a>
+ <a href="#cmdput">2.35 Send File Via TFTP (put)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdrm">2.36 Remove a File (rm)</a>
+ <a href="#cmdpwd">2.36 Show Current Working Directory (pwd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdrmdir">2.37 Remove a Directory (rmdir)</a>
+ <a href="#cmdrm">2.37 Remove a File (rm)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdset">2.38 Set an Environment Variable (set)</a>
+ <a href="#cmdrmdir">2.38 Remove a Directory (rmdir)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdsh">2.39 Execute an NSH Script (sh)</a>
+ <a href="#cmdset">2.39 Set an Environment Variable (set)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdsleep">2.40 Wait for Seconds (sleep)</a>
+ <a href="#cmdsh">2.40 Execute an NSH Script (sh)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdunmount">2.41 Unmount a File System (umount)</a>
+ <a href="#cmdsleep">2.41 Wait for Seconds (sleep)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdunset">2.42 Unset an Environment Variable (unset)</a>
+ <a href="#cmdunmount">2.42 Unmount a File System (umount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdurldec">2.43 URL Decode (urldecode)</a>
+ <a href="#cmdunset">2.43 Unset an Environment Variable (unset)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdurlencode">2.44 URL Encode (urlencode)</a>
+ <a href="#cmdurldec">2.44 URL Decode (urldecode)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdusleep">2.45 Wait for Microseconds (usleep)</a>
+ <a href="#cmdurlencode">2.45 URL Encode (urlencode)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdwget">2.46 Get File Via HTTP (wget)</a>
+ <a href="#cmdusleep">2.46 Wait for Microseconds (usleep)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
- <a href="#cmdxd">2.47 Hexadecimal Dump of Memory (xd)</a>
+ <a href="#cmdwget">2.47 Get File Via HTTP (wget)</a>
+ </td>
+</tr>
+<tr>
+ <td><br></td>
+ <td>
+ <a href="#cmdxd">2.48 Hexadecimal Dump of Memory (xd)</a>
</td>
</tr>
<tr>
@@ -892,7 +898,24 @@ cd [&lt;dir-path&gt;|-|~|..]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdcp"><h2>2.6 Copy Files (cp)</h2></a>
+ <a name="cmdcmp"><h2>2.6 Compare Files (cmp)</h2></a>
+ </td>
+ </tr>
+</table>
+
+<p><b>Command Syntax:</b></p>
+<ul><pre>
+cmp &lt;path1&gt; &lt;path2&gt;
+</pre></ul>
+<p>
+ <b>Synopsis</b>.
+ Compare of the contents of the file at <code>&lt;path1&gt;</code> with the contents of the file at <code>&lt;path2&gt;</code>. Returns an indication only if the files differ.
+</p>
+
+<table width ="100%">
+ <tr bgcolor="#e4e4e4">
+ <td>
+ <a name="cmdcp"><h2>2.7 Copy Files (cp)</h2></a>
</td>
</tr>
</table>
@@ -910,7 +933,7 @@ cp &lt;source-path&gt; &lt;dest-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmddate"><h2>2.7 Show or set the date and time (date)</h2></a>
+ <a name="cmddate"><h2>2.8 Show or set the date and time (date)</h2></a>
</td>
</tr>
</table>
@@ -937,7 +960,7 @@ data -s &quot;Sep 1 11:30:00 2011&quot;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmddd"><h2>2.8 Copy and Convert Files (dd)</h2></a>
+ <a name="cmddd"><h2>2.9 Copy and Convert Files (dd)</h2></a>
</td>
</tr>
</table>
@@ -995,7 +1018,7 @@ nsh&gt; dd if=/dev/ram0 of=/dev/null
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmddf"><h2>2.9 Show Volument Status (df)</h2></a>
+ <a name="cmddf"><h2>2.10 Show Volument Status (df)</h2></a>
</td>
</tr>
</table>
@@ -1026,7 +1049,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdecho"><h2>2.10 Echo Strings and Variables (echo)</h2></a>
+ <a name="cmdecho"><h2>2.11 Echo Strings and Variables (echo)</h2></a>
</td>
</tr>
</table>
@@ -1044,7 +1067,7 @@ echo [&lt;string|$name&gt; [&lt;string|$name&gt;...]]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdexec"><h2>2.11 Execute User Code (exec)</h2></a>
+ <a name="cmdexec"><h2>2.12 Execute User Code (exec)</h2></a>
</td>
</tr>
</table>
@@ -1063,7 +1086,7 @@ exec &lt;hex-address&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdexit"><h2>2.12 Exit NSH (exit)</h2></a>
+ <a name="cmdexit"><h2>2.13 Exit NSH (exit)</h2></a>
</td>
</tr>
</table>
@@ -1082,7 +1105,7 @@ exit
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdfree"><h2>2.13 Show Memory Manager Status (free)</h2></a>
+ <a name="cmdfree"><h2>2.14 Show Memory Manager Status (free)</h2></a>
</td>
</tr>
</table>
@@ -1124,7 +1147,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdget"><h2>2.14 Get File Via TFTP (get)</h2></a>
+ <a name="cmdget"><h2>2.15 Get File Via TFTP (get)</h2></a>
</td>
</tr>
</table>
@@ -1159,7 +1182,7 @@ get [-b|-n] [-f &lt;local-path&gt;] -h &lt;ip-address&gt; &lt;remote-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdhelp"><h2>2.15 Show Usage Command Usage (help)</h2></a>
+ <a name="cmdhelp"><h2>2.16 Show Usage Command Usage (help)</h2></a>
</td>
</tr>
</table>
@@ -1191,7 +1214,7 @@ help [-v] [&lt;cmd&gt;]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdhexdump"><h2>2.16 Hexadecimal Dump of File or Device (hexdump)</h2></a>
+ <a name="cmdhexdump"><h2>2.17 Hexadecimal Dump of File or Device (hexdump)</h2></a>
</td>
</tr>
</table>
@@ -1215,7 +1238,7 @@ hexdump &lt;file or device&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdifconfig"><h2>2.17 Manage Network Configuration (ifconfig)</h2></a>
+ <a name="cmdifconfig"><h2>2.18 Manage Network Configuration (ifconfig)</h2></a>
</td>
</tr>
</table>
@@ -1269,7 +1292,7 @@ ifconfig nic_name ip_address
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdifdown"><h2>2.18 Take a network down (ifdown)</h2></a>
+ <a name="cmdifdown"><h2>2.19 Take a network down (ifdown)</h2></a>
</td>
</tr>
</table>
@@ -1292,7 +1315,7 @@ ifdown eth0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdifup"><h2>2.19 Bring a network up (ifup)</h2></a>
+ <a name="cmdifup"><h2>2.20 Bring a network up (ifup)</h2></a>
</td>
</tr>
</table>
@@ -1315,7 +1338,7 @@ ifup eth0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdkill"><h2>2.20 Send a signal to a task (kill)</h2></a>
+ <a name="cmdkill"><h2>2.21 Send a signal to a task (kill)</h2></a>
</td>
</tr>
</table>
@@ -1356,7 +1379,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdlosetup"><h2>2.21 Setup/teardown the Loop Device (losetup)</h2></a>
+ <a name="cmdlosetup"><h2>2.22 Setup/teardown the Loop Device (losetup)</h2></a>
</td>
</tr>
</table>
@@ -1409,7 +1432,7 @@ losetup d &lt;dev-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdls"><h2>2.22 List Directory Contents (ls)</h2></a>
+ <a name="cmdls"><h2>2.23 List Directory Contents (ls)</h2></a>
</td>
</tr>
</table>
@@ -1446,7 +1469,7 @@ ls [-lRs] &lt;dir-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmd5"><h2>2.23 Calculate MD5 (md5)</h2></a>
+ <a name="cmdmd5"><h2>2.24 Calculate MD5 (md5)</h2></a>
</td>
</tr>
</table>
@@ -1463,7 +1486,7 @@ md5 [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmbhw"><h2>2.24 Access Memory (mb, mh, and mw)</h2></a>
+ <a name="cmdmbhw"><h2>2.25 Access Memory (mb, mh, and mw)</h2></a>
</td>
</tr>
</table>
@@ -1517,7 +1540,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdps"><h2>2.25 Show Current Tasks and Threads (ps)</h2></a>
+ <a name="cmdps"><h2>2.26 Show Current Tasks and Threads (ps)</h2></a>
</td>
</tr>
</table>
@@ -1543,7 +1566,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmkdir"><h2>2.26 Create a Directory (mkdir)</h2></a>
+ <a name="cmdmkdir"><h2>2.27 Create a Directory (mkdir)</h2></a>
</td>
</tr>
</table>
@@ -1578,7 +1601,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmkfatfs"><h2>2.27 Create a FAT Filesystem (mkfatfs)</h2></a>
+ <a name="cmdmkfatfs"><h2>2.28 Create a FAT Filesystem (mkfatfs)</h2></a>
</td>
</tr>
</table>
@@ -1598,7 +1621,7 @@ mkfatfs &lt;path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmkfifo"><h2>2.28 Create a FIFO (mkfifo)</h2></a>
+ <a name="cmdmkfifo"><h2>2.29 Create a FIFO (mkfifo)</h2></a>
</td>
</tr>
</table>
@@ -1636,7 +1659,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmkrd"><h2>2.29 Create a RAMDISK (mkrd)</h2></a>
+ <a name="cmdmkrd"><h2>2.30 Create a RAMDISK (mkrd)</h2></a>
</td>
</tr>
</table>
@@ -1687,7 +1710,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmount"><h2>2.30 Mount a File System (mount)</h2></a>
+ <a name="cmdmount"><h2>2.31 Mount a File System (mount)</h2></a>
</td>
</tr>
</table>
@@ -1766,7 +1789,7 @@ nsh> mount
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdmv"><h2>2.31 Rename a File (mv)</h2></a>
+ <a name="cmdmv"><h2>2.32 Rename a File (mv)</h2></a>
</td>
</tr>
</table>
@@ -1784,7 +1807,7 @@ mv &lt;old-path&gt; &lt;new-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdnfsmount"><h2>2.32 Mount an NFS file system (nfsmount)</h2></a>
+ <a name="cmdnfsmount"><h2>2.33 Mount an NFS file system (nfsmount)</h2></a>
</td>
</tr>
</table>
@@ -1803,7 +1826,7 @@ nfsmount &lt;server-address&gt; &lt;mount-point&gt; &lt;remote-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdping"><h2>2.33 Check Network Peer (ping)</h2></a>
+ <a name="cmdping"><h2>2.34 Check Network Peer (ping)</h2></a>
</td>
</tr>
</table>
@@ -1836,7 +1859,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdput"><h2>2.34 Send File Via TFTP (put)</h2></a>
+ <a name="cmdput"><h2>2.35 Send File Via TFTP (put)</h2></a>
</td>
</tr>
</table>
@@ -1871,7 +1894,7 @@ put [-b|-n] [-f &lt;remote-path&gt;] -h &lt;ip-address&gt; &lt;local-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdpwd"><h2>2.35 Show Current Working Directory (pwd)</h2></a>
+ <a name="cmdpwd"><h2>2.36 Show Current Working Directory (pwd)</h2></a>
</td>
</tr>
</table>
@@ -1901,7 +1924,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdrm"><h2>2.36 Remove a File (rm)</h2></a>
+ <a name="cmdrm"><h2>2.37 Remove a File (rm)</h2></a>
</td>
</tr>
</table>
@@ -1935,7 +1958,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdrmdir"><h2>2.37 Remove a Directory (rmdir)</h2></a>
+ <a name="cmdrmdir"><h2>2.38 Remove a Directory (rmdir)</h2></a>
</td>
</tr>
</table>
@@ -1970,7 +1993,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdset"><h2>2.38 Set an Environment Variable (set)</h2></a>
+ <a name="cmdset"><h2>2.39 Set an Environment Variable (set)</h2></a>
</td>
</tr>
</table>
@@ -1996,7 +2019,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdsh"><h2>2.39 Execute an NSH Script (sh)</h2></a>
+ <a name="cmdsh"><h2>2.40 Execute an NSH Script (sh)</h2></a>
</td>
</tr>
</table>
@@ -2014,7 +2037,7 @@ sh &lt;script-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdsleep"><h2>2.40 Wait for Seconds (sleep)</h2></a>
+ <a name="cmdsleep"><h2>2.41 Wait for Seconds (sleep)</h2></a>
</td>
</tr>
</table>
@@ -2031,7 +2054,7 @@ sleep &lt;sec&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdunmount"><h2>2.41 Unmount a File System (umount)</h2></a>
+ <a name="cmdunmount"><h2>2.42 Unmount a File System (umount)</h2></a>
</td>
</tr>
</table>
@@ -2061,7 +2084,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdunset"><h2>2.42 Unset an Environment Variable (unset)</h2></a>
+ <a name="cmdunset"><h2>2.43 Unset an Environment Variable (unset)</h2></a>
</td>
</tr>
</table>
@@ -2087,7 +2110,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdurldec"><h2>2.43 URL Decode (urldecode)</h2></a>
+ <a name="cmdurldec"><h2>2.44 URL Decode (urldecode)</h2></a>
</td>
</tr>
</table>
@@ -2104,7 +2127,7 @@ urldecode [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdurlencode"><h2>2.44 URL Encode (urlencode)</h2></a>
+ <a name="cmdurlencode"><h2>2.45 URL Encode (urlencode)</h2></a>
</td>
</tr>
</table>
@@ -2121,7 +2144,7 @@ urlencode [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdusleep"><h2>2.45 Wait for Microseconds (usleep)</h2></a>
+ <a name="cmdusleep"><h2>2.46 Wait for Microseconds (usleep)</h2></a>
</td>
</tr>
</table>
@@ -2138,7 +2161,7 @@ usleep &lt;usec&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdwget">2.46 Get File Via HTTP (wget)</a>
+ <a name="cmdwget">2.47 Get File Via HTTP (wget)</a>
</td>
</tr>
</table>
@@ -2165,7 +2188,7 @@ wget [-o &lt;local-path&gt;] &lt;url&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
- <a name="cmdxd"><h2>2.47 Hexadecimal Dump of Memory (xd)</h2></a>
+ <a name="cmdxd"><h2>2.48 Hexadecimal Dump of Memory (xd)</h2></a>
</td>
</tr>
</table>
@@ -2254,6 +2277,11 @@ nsh>
<td><code>CONFIG_NSH_DISABLE_CD</code></td>
</tr>
<tr>
+ <td><b><code>cmp</code></b></td>
+ <td><code>CONFIG_NFILE_DESCRIPTORS</code> &gt; 0</td>
+ <td><code>CONFIG_NSH_DISABLE_CMP</code></td>
+ </tr>
+ <tr>
<td><b><code>cp</code></b></td>
<td><code>CONFIG_NFILE_DESCRIPTORS</code> &gt; 0</td>
<td><code>CONFIG_NSH_DISABLE_CP</code></td>
@@ -3766,6 +3794,7 @@ mount -t vfat /dev/ram1 /tmp
<li><a href="#cmdbase64enc"><code>base64enc</code></a></li>
<li><a href="#cmdcat"><code>cat</code></a></li>
<li><a href="#cmdcd"><code>cd</code></a></li>
+ <li><a href="#cmdcmp"><code>cmp</code></a></li>
<li><a href="#commands">Command summaries</a></li>
<li><a href="#custoncmds">Command table</a></li>
<li><a href="#conditional">Conditional command execution</a></li>