Update regex
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
# Filter out do(), don't(), and mul()
|
# Filter out do(), don't(), and mul()
|
||||||
# then strip out tails to get do and don
|
# then strip out tails to get do and don
|
||||||
# strip out mul() to get numbers
|
# strip out mul() to get numbers
|
||||||
grep -Po 'do\(\)|don(.)?t\(\)|mul\([0-9]+,[0-9]+\)' input |
|
grep -Po 'do\(\)|don.t\(\)|mul\([0-9]+,[0-9]+\)' input |
|
||||||
grep -Po 'don|do|mul\([0-9]+,[0-9]+\)' |
|
grep -Po 'don|do|mul\([0-9]+,[0-9]+\)' |
|
||||||
sed -E 's/^mul\(([0-9]+),([0-9]+)\)/\1 \2/g' |
|
sed -E 's/^mul\(([0-9]+),([0-9]+)\)/\1 \2/g' |
|
||||||
awk '
|
awk '
|
||||||
|
@ -4,7 +4,6 @@ paste -s -d '' input.txt |
|
|||||||
perl -lne '
|
perl -lne '
|
||||||
print "$1$4$2$3"
|
print "$1$4$2$3"
|
||||||
while
|
while
|
||||||
/(?<=(.).)(?<=(.).{138})A(?=.{138}(.))(?=.(.))/g
|
/(?<=(.).(.).{138})A(?=.{138}(.).(.))/g
|
||||||
' |
|
' |
|
||||||
grep -Eo '(SM|MS){2}' |
|
grep -Ec '(SM|MS){2}'
|
||||||
wc -l
|
|
||||||
|
Reference in New Issue
Block a user