This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Returns the requested line number from a file or list of files. | |
# If the line number is given as i:j or i-j, selects that range. | |
# If no file is given, we read from STDIN. | |
my $arg = shift; | |
($num1,$split,$num2) = split(/([:\-\+])/,$arg); | |
die usage() unless $arg and (! $split or $num2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Matt Post <[email protected]> | |
# April 2013 | |
# This script turns a single column of sorted text into LaTeX-formatted multiple columns spanning | |
# multiple PDF pages. | |
# Its input is a single column of text on STDIN (each line is a complete entry). Two optional | |
# arguments specify (a) the number of rows on the first page and (b) the number of rows on the | |
# remaining pages, with both defaulting to 45. The last page will be adjusted automatically. |
NewerOlder