Thanks for the replies to the last question. It worked.
I have another file which contains the following:
456 11/10/1999 1
20 11/10/1999 2
16 11/10/1999 3
3 11/10/1999 4
1 11/10/1999 5
I need to get it to output:
I can't seem to get my head around only reading the date in once, then
down the file for each $1. Also, this file sometimes contains 7 records. So
to write something like if $1 = "" then print "0".
I think using the OFS = "," might work for the comma seperator?
>I'm trying to get the output of a find query into a 'for' statement.
>I've tried the below, but with no luck.
>find /dir/file* -mtime 1 | $NDATE
>for i in $NDATE
>I don't think i should be using the pipe command. I've tried all sorts of
>Can anyone give me an idea of how to write this correctly?
>The find query output /dir/file.999 where file.999 is the last modified.