This software displays a small part of a (very) big table. Compared to Look inside file, Look inside table is better to explore a table but will use more memory because one whole line is loaded into memory ;)
The table slice is printed on the screen and in a file.
Manual :
1- if not already installed, install Perl free programming language.
2- download the program
3- Use this syntax in a GNU linux / Unix terminal type :
NAME
look_inside_table_XXX.pl
DESCRIPTION
This software select some columns in tables in CSV or TXT (separator TAB by default).
AUTHOR
Frederic PONT (c) 2015
OPTIONS
-s separator
Specify the separator of the table. If the separator is omitted, tabulation
will be used by default.
-f file
Specify the filename of the table.
-a 0 or 1
Align and truncate columns
Columns are truncated to 15 characters and aligned on display
-h
Give syntax. This argument must be the first.
-help
Give detailed help (print this message). This argument
must be the first.
EXAMPLE
perl look_inside_table-0-02.pl -f test.csv # for a TAB separated table
perl look_inside_table-0-02.pl -f test.csv -s ";" # for a ; separated table
perl look_inside_table-0-02.pl -f test.csv -s ";" -a 1 # for a ; separated table and smart display
4- Then enter x1,y1 and x2,y2
Enjoy ;)
Caution : The end of line used by this software is Unix like : \n. It has been tested only with Unix like files (end of line \n), it should work with windows files (end of line \r\n) and it should not work with Apple files (end of line \r). File conversion is possible with search replace word (see convert Mac or Win file into Unix).