ignore last field delimiter code example Example: remove last field using awk awk 'NF{NF-=1};1' <in >out