Skip to content

Commit

Permalink
Complete #1181 (#1184)
Browse files Browse the repository at this point in the history
* Source impl of #1181

* Full flow for #1181
  • Loading branch information
johnkerl authored Jan 28, 2023
1 parent fd7cd98 commit f3fd2c2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/src/manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ MILLER(1) MILLER(1)
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\1"; $c = "right_\2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down Expand Up @@ -3297,5 +3297,5 @@ MILLER(1) MILLER(1)



2023-01-01 MILLER(1)
2023-01-28 MILLER(1)
</pre>
4 changes: 2 additions & 2 deletions docs/src/manpage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ MILLER(1) MILLER(1)
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\1"; $c = "right_\2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down Expand Up @@ -3276,4 +3276,4 @@ MILLER(1) MILLER(1)



2023-01-01 MILLER(1)
2023-01-28 MILLER(1)
1 change: 0 additions & 1 deletion docs/src/reference-verbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2264,7 +2264,6 @@ More example put expressions:
'$new_field = $index**2; $qn = $quantity * $new_field'
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/transformers/put_or_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ More example put expressions:
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\1"; $c = "right_\2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down
4 changes: 2 additions & 2 deletions man/manpage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ MILLER(1) MILLER(1)
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\1"; $c = "right_\2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down Expand Up @@ -3276,4 +3276,4 @@ MILLER(1) MILLER(1)



2023-01-01 MILLER(1)
2023-01-28 MILLER(1)
6 changes: 3 additions & 3 deletions man/mlr.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: mlr
.\" Author: [see the "AUTHOR" section]
.\" Generator: ./mkman.rb
.\" Date: 2023-01-01
.\" Date: 2023-01-28
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "MILLER" "1" "2023-01-01" "\ \&" "\ \&"
.TH "MILLER" "1" "2023-01-28" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Portability definitions
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -1885,7 +1885,7 @@ More example put expressions:
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\e1"; $c = "right_\e2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\e1"; $c = "right_\e2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down
2 changes: 1 addition & 1 deletion test/cases/cli-help/0001/expout
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ More example put expressions:
Regex-replacement:
'$name = sub($name, "http.*com"i, "")'
Regex-capture:
'if ($a =~ "([a-z]+)_([0-9]+)) { $b = "left_\1"; $c = "right_\2" }'
'if ($a =~ "([a-z]+)_([0-9]+)") { $b = "left_\1"; $c = "right_\2" }'
Built-in variables:
'$filename = FILENAME'
Aggregations (use mlr put -q):
Expand Down

0 comments on commit f3fd2c2

Please sign in to comment.