Search Results

Search: Posts Made By: musica
2,069
Posted By musica
Thanks it works!
Thanks it works!
2,069
Posted By musica
copying one field to another
Hi,

I am trying to copy one field to another only on lines that match a certain string. Here is what i have tried:

awk '/nch/' {gsub($3,$5,$0)}' file

I need to copy $5 (field) to $3 if...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy