Skip to content

Instantly share code, notes, and snippets.

@yichao0319
Created October 14, 2013 23:42
Show Gist options
  • Save yichao0319/6984216 to your computer and use it in GitHub Desktop.
Save yichao0319/6984216 to your computer and use it in GitHub Desktop.
perl:gnuplot mother
my $cmd = "sed 's/DATA_DIR/xxx/g; s/FIG_DIR/xxx/g; s/FILE_NAME/xxx/g; s/FIG_NAME/xxx/g; s/DEGREE/xxx/g; s/X_LABEL/xxx/g; s/Y_LABEL/xxx/g; s/X_RANGE_S/xxx/g; s/X_RANGE_E/xxx/g; s/Y_RANGE_S/xxx/g; s/Y_RANGE_E/xxx/g; s/TITLE_1/xxx/g; s/TITLE_2/xxx/g;' xxx.mother > tmp.xxx";
`$cmd`;
$cmd = "gnuplot tmp.xxx";
`$cmd`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment