Implement a simple minded which program smwhich
smwhich takes one input and prints one output that is the full path of the shell command
$ smwhich cp
/bin/cp
$ smwhich cop
smwhich: no cop in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:.
This is a really simple program, and I can do it within 2-3 minutes. Or even less than that. I've a great experience with C programming, using POSIX API with linux, and I have created a kernel in C of my own.
- I have been working in C for last 8 years on Linux environment.
- Extensive knowledge of C language and Linux Programming environment.
- Well versed with Bash scripting.
i had finish your job, it looks like
$ smwhich ls
/bin/ls
$ smwhich lsa
smwhich: no lsa in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/ckelsel/work)