filter_mplus.pl Brennen Bearnes (for Levente Littvay) 2/19/2007 http://p1k3.com/hack/mplus -- important files -- filter_mplus.pl default.conf.pl <-- original generic conf file misn.conf.pl <-- new conf file -- how to use -- Pull out some basic values: ./filter_mplus.pl -f model1lgdp0.out Pull out A1, C1, and E1 by Y1: ./filter_mplus.pl -f misn500anegh1alt.out -c misn.conf.pl The same, only append them to a simple CSV file: ./filter_mplus.pl -f misn500anegh1alt.out -c misn.conf.pl -o values.csv Run this on a bunch of files: for file in `ls *.out`; do ./filter_mplus.pl -f $file -c misn.conf.pl -o test.csv; done -- known problems -- * You'll get a false positive for the start text if it's not there. * This should be smart enough to process multiple files, but it ain't. * The command options should be more flexible. * You'll get a blank line in the CSV file if it didn't find values.