Examples
Issue #2
resolved
Suggest that rewriting the perl one-liners at this link in tab would provide a nice set of examples:
http://www.catonmat.net/download/perl1line.txt
Comments (5)
-
repo owner -
The examples at the end of the help for each CSVfix command might provide some ideas. http://neilb.bitbucket.org/csvfix/manual/csvfix16/csvfix.html
-
repo owner I think I'll just write my own examples. Will be ready for a 2.0 release.
-
repo owner Released 2.0, with examples: http://tkatchev.bitbucket.org/tab/examples.html
-
repo owner - changed status to resolved
- Log in to comment
Good idea, but I don't agree with the use of the Perl one-liner list. The stuff in that file mostly seems geared towards showing off the peculiar strengths of Perl, not as a list of common problems that need solving.
In general, tab is mostly useful for tabular data, the kind that can be plotted or inserted into a relational database. (Hence the name.)
For example, a problem like "number only non-empty lines in a file" is hard or impossible to solve in tab. (Other problems, like "find the median temperature of March vs. September" are much simpler.)