I have a script that I have to edit and change a date on a specific line in the following formatmm/dd/yyyy)
Its on line 38, and its the 9th field in the record. (Assuming that each line is a different record)
There are other dates in the file but I only want that specific what changed. I'm kinda new to awk and unix (I'm still learning quite a few commands in unix) ... anyway is there a way I can somebody help me use awk to replace the old date with the current date?
Would sed be more appropriate for this? (I'd have to learn sed in that case..)
I think sed would be something like: sed 's/??\/??\/06/`date +%m\/$d\/%Y'
any help would be great, tia
Kip
Its on line 38, and its the 9th field in the record. (Assuming that each line is a different record)
There are other dates in the file but I only want that specific what changed. I'm kinda new to awk and unix (I'm still learning quite a few commands in unix) ... anyway is there a way I can somebody help me use awk to replace the old date with the current date?
Would sed be more appropriate for this? (I'd have to learn sed in that case..)
I think sed would be something like: sed 's/??\/??\/06/`date +%m\/$d\/%Y'
any help would be great, tia
Kip