Hi, All
I want to change a field in the middle of a file such as below
123 456 789
987 654 321
147 258 369
for example i extract 654 in line 2 with following code and sum with 20
EX=`cut -f2 -d " " FILENAME`
let EX=$EX+2
if we have too many fields with too many lines, how we can extract
(n,m) [n=line number , m= field number] of this file and replace it with
an other number, with out rewrite all file?
Your question is not quite clear but try if this is what you wanted...
654 will be the number which u will be searchin in each field one by one and it will add 2 when it find the match for 654
It was powefull, and can any body tell me how can i save only this cell , without need to overwrite all file?
Assume that, there is too many records (a huge file).