diff options
author | Frans Kaashoek <[email protected]> | 2019-07-24 18:00:32 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2019-07-24 18:00:32 -0400 |
commit | 61dc67b5d2febd302c96cee2821ac190fdd24c4a (patch) | |
tree | 4c2e4b256ea014b7a2c77d32c63e62fea2d6d491 /labs | |
parent | 9a817bd134cd83c8a8c8cc96f022a0c22cc5bdb4 (diff) | |
download | xv6-labs-61dc67b5d2febd302c96cee2821ac190fdd24c4a.tar.gz xv6-labs-61dc67b5d2febd302c96cee2821ac190fdd24c4a.tar.bz2 xv6-labs-61dc67b5d2febd302c96cee2821ac190fdd24c4a.zip |
Simple find assignment
Diffstat (limited to 'labs')
-rw-r--r-- | labs/xv6.html | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/labs/xv6.html b/labs/xv6.html index 1749ca6..a5df08d 100644 --- a/labs/xv6.html +++ b/labs/xv6.html @@ -144,18 +144,29 @@ initial file system. You just ran one of them: <tt>ls</tt>. <h2>find</h2> <p>Write a simple version of the UNIX find program: find all the files - in a directory tree that contain a user-specified string. + in a directory tree whose name matches a string. For example if the + file system contains a file <tt>a/b</tt>, then running find as + follows should produce: + <pre> + $ find . b + ./a/b + $ + </pre> <p>Some hints: <ul> <li>Look at user/ls.c to see how to read directories. - </ul> + <li>Use recursion to run find in sub-directories. + <li>Don't recurse into "." and "..". + </ul> -<h2>Optional: modify shell</h2> +<h2>Optional: modify the shell</h2> <p>Modify the shell to support lists of commands, separated by ";" -<p>Modify the shell to support sub-shells by implementing "(" and ")" +<p>Modify the shell to support sub-shells by implementing "(" and ")" + +<p>Modify the shell to allow users to edit the command line </body> </html> |