next up previous 405
Next: Finding the number of fields
Up: Dealing with Files
Previous: Reading lines from a text file


Reading tabular data

When reading data into your script from a text file you will often require to extract columns of data, determine the number of lines extracted, and sometimes the number columns and selecting columns by heading name. The shell does not offer file reading commands, so we fall back heavily on our friend awk.



Subsections

next up previous 405
Next: Finding the number of fields
Up: Dealing with Files
Previous: Reading lines from a text file

C-shell Cookbook
Starlink Cookbook 4
Malcolm J. Currie
2006 November 26
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council