Implement 'rm' and 'tail' functionality with C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yanni
    New Member
    • Mar 2008
    • 1

    Implement 'rm' and 'tail' functionality with C

    hy everyone...i have 2 problems..and i don't have any idea how to resolve them.
    i am a beginner in linux..i know just the usual commands..
    first problem:
    1) Program C implementing rm command with -i and -r option. it's allawed multiple arguments type folders
    2) the same problem for tail command with -n or -c option.
    i saw the example for tail command..discuu sed on yahoo groups..but there are a lot of things that i didn't learn at school.
    i hope u can help me
    have a nice day
    yan
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by Yanni
    hy everyone...i have 2 problems..and i don't have any idea how to resolve them.
    i am a beginner in linux..i know just the usual commands..
    first problem:
    1) Program C implementing rm command with -i and -r option. it's allawed multiple arguments type folders
    2) the same problem for tail command with -n or -c option.
    i saw the example for tail command..discuu sed on yahoo groups..but there are a lot of things that i didn't learn at school.
    i hope u can help me
    have a nice day
    yan
    Problem is, you are asking for something programmed in C, which has its own forum. You may be working on this problem on *nix, but its a C issue. I shall move it to that forum.

    Regards,

    Moderator

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      You can use the system() command to execute OS-level commands inside your program.

      Or are you looking for something else.

      PS - as we ask that members use descriptive thread names, I am changing the title of your thread so it is. Please let me know if this does not describe your issue, and if so, what you would like it to be.

      Thanks

      Comment

      Working...