РЕДАКТИРОВАТЬ: Добавление кода, предложенного anubhava sir тоже в разделе комментариев.
awk '{s=$1; for (i=2; i<NF; i++) s = s OFS $(i+1) - $i; print s}' Input_file
Не могли бы вы попробовать следующее.
awk '{printf $1 OFS;for(i=2;i<NF;i++){printf("%d%s",$(i+1)-$i,i==(NF-1)?ORS:OFS)}}' Input_file
Вывод будет следующим:
1 373 23 175 91 48 279 262 50 225 143 486 105
Объяснение: Добавление объяснения тоже здесь.
awk '
{
printf $1 OFS ##Printing first field and OFS(whose value is space by default).
for(i=2;i<NF;i++){ ##Starting for loop from value of 2 to till NF-1 value where NF is number of field in current line.
printf("%d%s",$(i+1)-$i,i==(NF-1)?ORS:OFS) ##Printing diffrence of next field and current field and checking condition for 2nd print if i==NF-1 then new line else print space for that line.
} ##Closing for loop block here.
}
' Input_file ##Mentioning Input_file name here.