Writing my shell
I am trying to write a set of C programs each of which is dedicated to one command to be incorporated in my customized shell. The programs are:
mycp : takes 2 args:file1 and file2. This one creates a copy of file1 into file2.
mylnb: takes 3 args: file1, file2, counter. the lines of file1 are then numbered starting with counter and the result is stored in file2, example: mylnb 100 f1 f2 ,This will create f2 with its lines numbered from 100, 101, ...
myshow: 2 options: a type user option and a mode option, the command then diplays a list of all files accessible to the user with its indicated mode.
Please help I have never used C on Linux before and i have reached a dead end.