M slurp
A few example programs follow showing uses of the M_slurp module:
reverse order of lines in a file
sort lines removing leading spaces
expand tabs, trim whitespace from end of lines
line up double-colon strings in Fortran code.
convert text to a Fortran character variable declaration
all characters to uppercase
all characters to lowercase