Created
February 29, 2016 16:17
-
-
Save ftessier/47886ee0ebadba5bbeac to your computer and use it in GitHub Desktop.
This file contains 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 | |
$count=0; | |
print " "; | |
while (<>) { | |
chomp; | |
# convert estar output to pegs format | |
$_ =~ s/^\s+//; | |
($energy, $param) = split(/ +/); | |
printf "%.2E,%.3E", $energy, $param; | |
$count++; | |
if ($count==4) { | |
$count = 0; | |
print "\n "; | |
} | |
else { | |
print " "; | |
} | |
} | |
print "\n "; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment