Hi everyone,
I was wondering how could from a file where each row is separated by tabulations, the row values where are in blank replace them by a string or value.
My file has this form:
26/01/09 13:45:00 0 0
26/01/09 14:00:00 1495.601318 0
26/01/09 14:15:00 1495.601318 0
26/01/09 14:30:00 1495.601318 0
26/01/09 14:45:00 1495.601318 0
26/01/09 15:00:00 1495.601318 0
26/01/09 15:15:00 1495.601318 0
26/01/09 15:30:00 1495.601318 0
26/01/09 15:45:00 0
26/01/09 16:15:00 1105.571899 0
26/01/09 16:30:00 1111.437012 0
I've tried using sed command like this:
sed 's/[:blank:]+/-9999/g' input > output
but it doesn't work, could somebody tell me what I'm doing wrong,
thanks in advance.