3

How to adjust numeric fields in a text file

view full story
linux-howto

http://unix.stackexchange.com – Suppose I have the following <Tab> separated text file: file name size owner file1.txt 12.345 root file2.txt 0.172222 user1 file3.txt 2.46e2 user2 file4.txt 12345 root file5.txt 21 user3 file6.txt 246.0 user1 file name owner last modified last accessed text4.txt root 12.73 13.53 text5.txt user3 15.3333 34 file1.txt root 23 31.0032 This file consists of several "tables", each of which starts with a header line and then contains some data lines. Some columns are numeric (HowTos)