Skip to content

Instantly share code, notes, and snippets.

@Koronen
Created October 27, 2012 16:49
Show Gist options
  • Save Koronen/3965307 to your computer and use it in GitHub Desktop.
Save Koronen/3965307 to your computer and use it in GitHub Desktop.
progp12: S1
Tunnelbanan Östra station 50 Drottning Kristinas väg
Östra station p1 20 Drottning Kristinas väg
p1 THS 100 Drottning Kristinas väg
THS p2 500 Drottning Kristinas väg
p2 p3 200 Teknikringen
p3 Escapen 200 Osquars backe
Escapen p1 100 Osquars backe
Tunnelbanan Östra station 50 Drottning Kristinas väg
Östra station p1 20 Drottning Kristinas väg
p1 THS 100 Drottning Kristinas väg
THS p2 500 Drottning Kristinas väg
p2 p3 200 Teknikringen
p3 Escapen 200 Osquars backe
Escapen p1 100 Osquars backe
#!/usr/bin/env sh
REGEXP='s/min/regexp/g'
sed $REGEXP < t1.in | diff t1.out -
sed $REGEXP < t2.in | diff t2.out -
sed $REGEXP < kth.in | diff kth.out -
#!/usr/bin/env sh
REGEXP='/minregexp/'
cat bra.txt | grep -v -E $REGEXP
cat dumt.txt | grep -E $REGEXP
1 2 3 4 5
A,B,C,D,E
A ; B ; C ; D ; E
1;;3;;5
Aj Oj Uj Ej Jo
Datateknik, KTH
1 2 3 4 5
A B C D E
A B C D E
1 3 5
Aj Oj Uj Ej Jo
Datateknik KTH
1
4711
abc
1
4711
abc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment