Dec 13, 2002 #1 sukchai IS-IT--Management Dec 12, 2002 3 SG I used awk command for arrange data. awk -f script.sh input.file > output.file #output.file 4549659 5807257 05720 8450405 How can I put real time from date command while running script in front of these data?
I used awk command for arrange data. awk -f script.sh input.file > output.file #output.file 4549659 5807257 05720 8450405 How can I put real time from date command while running script in front of these data?
Dec 14, 2002 #2 marsd IS-IT--Management Apr 25, 2001 2,218 US try this: function awkdate() { cmd = "date + format string" cmd | getline mydate if (mydate) { printf "%s\n", mydate } } Upvote 0 Downvote
try this: function awkdate() { cmd = "date + format string" cmd | getline mydate if (mydate) { printf "%s\n", mydate } }