You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command:
The locate command directly searches for the location of files based on the file name. Additional arguments such as -i will accommodate to the filename and print relevant results. For example, -i will ignore upper or lower case of the file.
Plan:
First, the command will be implemented and used in the user’s command line argument to find the requested file name. It should be displayed on the terminal (list printed if multiple matching file names). Accomodate flags as well.
Files:
user/locate.c: Specific functions based on the command and flags to adjust file name results printed
Makefile: Update to compile location.c along with other OS commands.
user/user.h: Add specific functions and argument names.
The text was updated successfully, but these errors were encountered:
One distinction for the locate command is it uses a database to search for the files. I'm not sure if you want to go with that approach, but if you'd rather traverse the file system for each invocation then maybe technically this would be implementing find instead. (so basically just a name change).
You can also use the basic regex implementation from grep.c to support pattern matching for this.
Partners: Esha Dupuguntla @eshadupz
Command:
The locate command directly searches for the location of files based on the file name. Additional arguments such as -i will accommodate to the filename and print relevant results. For example, -i will ignore upper or lower case of the file.
Plan:
First, the command will be implemented and used in the user’s command line argument to find the requested file name. It should be displayed on the terminal (list printed if multiple matching file names). Accomodate flags as well.
Files:
user/locate.c: Specific functions based on the command and flags to adjust file name results printed
Makefile: Update to compile location.c along with other OS commands.
user/user.h: Add specific functions and argument names.
The text was updated successfully, but these errors were encountered: