Difference between revisions of "HLab:Perlscripts"

From CCGB
Jump to: navigation, search
Line 3: Line 3:
 
basicStats.pl
 
basicStats.pl
 
*Compute basic statistics such as min, max, mean, median on a column of numbers in a tab delimited file or a redirected list of numbers on stdin.
 
*Compute basic statistics such as min, max, mean, median on a column of numbers in a tab delimited file or a redirected list of numbers on stdin.
*[[Media:basicStats.pl.txt|basicStats.pl]]
+
*[[Media:basicStats.txt|basicStats.pl]]
  
 
lineEnds
 
lineEnds
 
*Convert a text file between the different line end encodings for Unix, Mac, and Windows.
 
*Convert a text file between the different line end encodings for Unix, Mac, and Windows.

Revision as of 12:08, 7 January 2015

Some small perl scripts that are generally useful.

basicStats.pl

  • Compute basic statistics such as min, max, mean, median on a column of numbers in a tab delimited file or a redirected list of numbers on stdin.
  • basicStats.pl

lineEnds

  • Convert a text file between the different line end encodings for Unix, Mac, and Windows.