Hi folks,
I have a file which has 9 column. I want to replace A by RA in 4th column. Remember there are A in 8th column also. I only want to replace A by RA in 4th column. How can I do it? Please help me.
Hi folks,
I have a file which has 9 column. I want to replace A by RA in 4th column. Remember there are A in 8th column also. I only want to replace A by RA in 4th column. How can I do it? Please help me.
If this is not what you need,
please post sample input and output !
this command doesnt work for a sample input file like
I had modified it with some assumptions
( subject to assumption that there are no other occurrence of the character 'A' before 4th column )
Matrix, if you read the OPs original post again:
Quote:
Originally Posted by chuchu
Hi folks,
I have a file which has 9 column. I want to replace A by RA in 4th column. Remember there are A in 8th column also. I only want to replace A by RA in 4th column. How can I do it? Please help me.
He has a file with 9 (nine) columns and wants to replace the 4th column.
Your test data has 17 columns, much more than 9 columns.
Also the 'A' in your test data is on the 7th column, not the 4th column.
Your solution:
replaces only the first occurrence of 'A', ignoring what column it is.