Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Help Assignment !! :D

    Q-1

    Write a shell script in Unix that lists files from your current working directory
    · By modification time when called with lm
    · By access time when called with la.
    By default, the script should show the listing of all the files in the current directory.

    Q-2

    Write a shell script which add the statement “#include <stdio.h>” at the beginning of all the C source files in the current working directory, containing printf or fprintf, if it doesn’t have it included.

    Need to Submit this by this Weeknd Please Help

  2. #2
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,001
    Its only Tuesday, question one should take 15 minutes, question 2 maybe an hour.
    When you have posted an attempt at the answering the questions, someone will critique it for you.

  3. #3
    Join Date
    Oct 2012
    Posts
    2

    Sorry

    Sorry buddy am new to SHELL Scripting..

    Just need to Submit the Assignments for Marks...\vl take this course, next time,


    Thanks in advance..

  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    12,412
    oh so you haven't actually studied this at all..
    yet the college is going to assess your knowledge by setting this assignment

    time to start studying matey....
    at least make an effort
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •