#! /bin/bash
# Last edited on 2011-03-27 02:55:27 by stolfi

# Adds 101 kPA to the core pressure of all entries.

gawk \
  -v FS='|' \
  -v OFS='|' \
  ' //{ 
      printf "%s | %s | %s", $1,$2,$3;
      printf " | %s", $4;
      printf " | %s", ($5+0 < 88888 ? $5 + 101 : $5);
      for (i=6; i <= NF; i++) { printf " | %s", $(i); }
      printf "\n";
    }
  ' \
  | txtable-reformat
  
