mrimagepueblo
Programmer
Using /bin/sh shell script. I have to pull fields from a bigger file, no problem there, I'm just clueless on adding something to the beginning and the end of a field.
I have a pipe delimited file as such: I'll only use one line for the example: 12345 will always match, as I'm just duplicating whatever is in field 1 to the fourth field.
example:
12345|JF1SG65683H725202|data|12345|data|data|
What I want to be able to do is prepend and append two variables to the fourth field. It will always be
to the front and .jpg to the end.
end result:
12345|JF1SG65683H725202|data|
Any help would be appreciated.
I have a pipe delimited file as such: I'll only use one line for the example: 12345 will always match, as I'm just duplicating whatever is in field 1 to the fourth field.
example:
12345|JF1SG65683H725202|data|12345|data|data|
What I want to be able to do is prepend and append two variables to the fourth field. It will always be
to the front and .jpg to the end.
end result:
12345|JF1SG65683H725202|data|
Any help would be appreciated.