Unix/Linux Go Back    


Homework & Coursework Questions Students must use and complete the template provided. If you don't, your post may be deleted! Special homework rules apply here.

Helpm with time function

Homework & Coursework Questions


Tags
awk

Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 3 Weeks Ago
alula alula is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 15 January 2017, 5:43 AM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
clarification on the script

@jim thanks for the script. I have tried each of the script but it doesn't work. could you clarify me better and which script to use. thanks for your help.
Sponsored Links
    #9  
Old Unix and Linux 3 Weeks Ago
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 22 January 2017, 12:29 PM EST
Location: Aachen, Germany
Posts: 10,159
Thanks: 230
Thanked 3,073 Times in 2,849 Posts
It is always helpful to post EXACTLY what "doesn't work" and so keep people from guessing.
Any output? No output? Error messages?

Both scripts need to be run in sequence, and the data file name needs to be "filename", so either rename your file or adapt/correct in the second script line 7. On top, it would be beneficial to remove the ^M (\r, 0x0D) DOS line terminators from the input file.

It were benficial also if the requirements and data structures DON'T change between posts (compare #1 and #6).
Sponsored Links
    #10  
Old Unix and Linux 3 Weeks Ago
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 22 January 2017, 3:24 AM EST
Location: San Jose, CA, USA
Posts: 9,862
Thanks: 476
Thanked 3,385 Times in 2,891 Posts
Moderator's Comments:
Helpm with time function Homework and Coursework questions must include a completely filled out template from the special homework rules that apply to all threads posted in the Homework and Coursework Questions forum.

Please include a completely filled out form in your next post in this thread, or it will be closed.

Note that we are not here to do your homework for you, but will be happy to try to help you figure out what you need to do so you can complete your homework on your own.
The Following User Says Thank You to Don Cragun For This Useful Post:
rbatte1 (3 Weeks Ago)
    #11  
Old Unix and Linux 3 Weeks Ago
alula alula is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 15 January 2017, 5:43 AM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
error message

this is the error message that appears.


Code:
awk: datecommand.txt:1: awk '{
awk: datecommand.txt:1:     ^ invalid char ''' in expression
awk: datecommand.txt:1: awk '{
awk: datecommand.txt:1:     ^ syntax error

do you have a solution?
Sponsored Links
    #12  
Old Unix and Linux 3 Weeks Ago
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 22 January 2017, 3:24 AM EST
Location: San Jose, CA, USA
Posts: 9,862
Thanks: 476
Thanked 3,385 Times in 2,891 Posts
Moderator's Comments:
Helpm with time function Since the required and requested completed homework and coursework questionnaire has not been provided, this thread is closed!
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
time function nicos UNIX for Dummies Questions & Answers 2 12-14-2008 12:41 AM
Nawk Time Function Raynon Shell Programming and Scripting 4 11-01-2007 07:15 AM
function time scotty_123 Programming 2 05-04-2007 10:51 AM
time function hsekol Shell Programming and Scripting 10 03-20-2007 01:11 AM
C time in milliseconds function. kamil Programming 3 07-09-2003 01:20 PM



All times are GMT -4. The time now is 02:15 PM.