If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Help Assignment !! :D

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Oct 2012
Posts: 2
Help Assignment !! :D


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.


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
Reply With Quote
  #2 (permalink)  
Programming since 1BC
Join Date: Sep 2009
Location: Ontario
Posts: 991
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.
Reply With Quote
  #3 (permalink)  
Registered User
Join Date: Oct 2012
Posts: 2

Sorry buddy am new to SHELL Scripting..

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

Thanks in advance..
Reply With Quote
  #4 (permalink)  
Jaded Developer
Join Date: Nov 2004
Location: out on a limb
Posts: 12,286
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
Is taking part in the 'Distinguished Gentlemans' ride. Being neither distinguished nor a gentleman, but I am keen to raise funds for Prostrate Cancer research. At present I'm threatening to ride a Norton 961 wearing a kilt. If you would like to contribute to Prostrate Cancer research then please consider donating via this page:-
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On