i want to develop a script newdata that writes new data to a file called items
the file items has the following headings columns separated by tabs:
channel date time programe
if i type executable file newdata on the command line with parameters, it should append it to the items files
the format is:
channel [digit ie.5]
date [formated as year-month-day ie. 2009-02-07]
time [formated as hh:mm ie. 14:09]
programe [formated as string ie. lost
eg. i type;
$ newdata 5 2008/12/08 14.09 lost
and this must be appended to the file items and shows as:
channel date time programe
5 2008/12/08 14.09 lost
please help... awk is prefered