There is a special command to allow the user to work his way through all files in the file system that match a given pattern (like in MS-DOS or UNIX the pattern *.c). Its syntax is
first patternThis command sets up all the internal variables for the search. After this each time the value of the variable `nextfile' is asked the next file will be looked for. The first file should be looked for also with the reading of `nextfile'. If its value is 1 (= true) there is another file and its properties can be found in the variables nextname (the name), nextatt (the attributes), nextdate (the date and time) and nextsize (the size in bytes). The attributes are presented in terms of a string of six characters. The meaning of the characters is (from the left to the right) format: