Skip to content

Commit c4181ee

Browse files
authored
Adding an update_inlists script which works on mac
Mac's sed syntax is different than linux's (quick fix motivated by students currently taking stars class at CUNY)
1 parent 35af0d9 commit c4181ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/update_inlists_mac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
mkdir backup_inlists
4+
cp inlist* backup_inlists
5+
sed -i '' 's/log_center_density_limit/log_center_density_upper_limit/' inlist*
6+
sed -i '' 's/log_center_temp_limit/log_center_temp_upper_limit/' inlist*
7+
sed -i '' 's/center_entropy_limit/center_entropy_upper_limit/' inlist*
8+
sed -i '' 's/max_entropy_limit/max_entropy_upper_limit/' inlist*
9+
sed -E -i '' '/inlist[1-5]/s/([1-5])([_a-z]*) =/\2\(\1\) =/' inlist*

0 commit comments

Comments
 (0)