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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old
Programming since 1BC
 
Join Date: Sep 2009
Location: Ontario
Posts: 972
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)  
Old
Registered User
 
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..
Reply With Quote
  #4 (permalink)  
Old
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 12,092
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 my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

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