The-Spaghetti-Is-Ready / ICT374-Assignment2-2024

ICT374 Assignment 2
0 stars 0 forks source link

4. Wildcard Characters #5

Open The-Spaghetti-Is-Ready opened 1 month ago

The-Spaghetti-Is-Ready commented 1 month ago

If a token contains wildcard characters * or ?, the token is treated as a filename. The wildcard characters in such a token indicate to the shell that the filename must be expanded. For example the command:

% ls *.c

may be expanded to ls ex1.c ex2.c ex3.c if there are three matching files 'ex1.c ex2.c ex3.c' in the current directory.

You may implement this feature using the C function glob.

Minywire commented 5 days ago

glob()