I have a file with 32 fields each separated by �|�. I need to add a file date exactly in the format � "20100120" � as the 32nd field moving the existing 32nd field to 33. so the field I added should be 32nd and the 33rd field is the last field before I added the file date.
I know we can use sed and awk to replace or add for a file either at beginning or the end but not in the last but one position. Is there a way to do this?
anbu i dont understand where you have mentioned the field 32, as i have the almost same issue but i need to change field18 and total numbers of fileds are 54.