MCPcopy Index your code
hub / github.com/bitfield/script / ExamplePipe_Reject

Function ExamplePipe_Reject

script_test.go:2519–2524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2517}
2518
2519func ExamplePipe_Reject() {
2520 script.Echo("a\nb\nc\n").Reject("b").Stdout()
2521 // Output:
2522 // a
2523 // c
2524}
2525
2526func ExamplePipe_RejectRegexp() {
2527 re := regexp.MustCompile("w.*d")

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StdoutMethod · 0.80
RejectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…