author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Sun, 18 Dec 2016 02:01:18 +0000 | |
changeset 89 | fac25de665d2 |
parent 85 | fd3f8581ce85 |
child 90 | d77af4aca939 |
permissions | -rw-r--r-- |
78 | 1 |
Calling ediff from the command line |
2 |
||
3 |
||
4 |
emacs --eval "(ediff-files \"k1502472/drumb.scala\" \"k1502752/drumb.scala\")" |
|
85 | 5 |
|
6 |
||
7 |
deleting comments from scala files |
|
8 |
||
89
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
9 |
find . -name '*.scala' -print0 | xargs -0 perl -n -p -0 -i.bak -e 's%/\*([^*].*?)?\*/%%gs;s%^([^\"\n\r]*(\"[^\"\n\r]*\"[^\"\n\r]*?)*?)//([^*\n\r].*)?$%$1%gm' |
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
10 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
11 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
12 |
find . -name '*.scala' -print0 | sed -i.2 's|def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|//def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|g' |
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
13 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
14 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
15 |
LC_ALL=C sed -i.2 -- 's|def ordered_moves(dim: Int, path: Path, x: Pos): List\[Pos\] = \.\.|//def ordered_moves(dim: Int, path: Path, x: Pos): List[Pos] = ..|g' k*/knight3.scala.bak |
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
16 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
17 |
LC_ALL=C sed -i.2 -- 's|def first_closed_tour_heuristic(dim: Int, path: Path): Option\[Path\] = \.\.\.|//def first_closed_tour_heuristic(dim: Int, path: Path): Option[Path] = ...|g' k*/knight3.scala.bak |
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
18 |
|
fac25de665d2
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
85
diff
changeset
|
19 |
LC_ALL=C sed -i.2 -- 's|def first_tour_heuristic(dim: Int, path: Path): Option\[Path\] = \.\.\.|//def first_tour_heuristic(dim: Int, path: Path): Option[Path] = ...|g' k*/knight3.scala.bak |