Hello,
I have the following input file...
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Basically it is a monthly calendar (June 2011). I need to fill the blanks with 'X', meaning...
X X X 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 X X
I top row is straight forward, as the following does it...
sed 's/ / X /g'
Please help with the bottom row.
Thanks
Arun
I have the following input file...
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Basically it is a monthly calendar (June 2011). I need to fill the blanks with 'X', meaning...
X X X 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 X X
I top row is straight forward, as the following does it...
sed 's/ / X /g'
Please help with the bottom row.
Thanks
Arun