Go to file
renovate 021b7ea8dd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
Update docker.io/rust Docker tag to v1.78 (#13)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.io/rust | minor | `1.77` -> `1.78` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzQuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMzNC40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: Renovate Bot <renovate@kemitix.net>
Co-authored-by: kemitix <kemitix@noreply.kemitix.net>
Reviewed-on: #13
Co-authored-by: renovate <renovate@noreply.kemitix.net>
Co-committed-by: renovate <renovate@noreply.kemitix.net>
2024-05-03 19:24:11 +01:00
src rewrite woodpecker-ci to publish to crates.io (#8) 2024-02-26 10:36:03 +00:00
tests skip until matching tokens seen 2023-03-22 07:21:16 +00:00
.gitignore Add readme 2023-03-23 16:12:03 +00:00
.woodpecker.yml Update docker.io/rust Docker tag to v1.78 (#13) 2024-05-03 19:24:11 +01:00
Cargo.lock Version set to 0.2.1 (#9) 2024-02-26 13:59:29 +00:00
Cargo.toml release/0.2.1 (#10) 2024-02-28 17:48:25 +00:00
justfile Add woodpecker ci config (#3) 2023-03-24 09:41:50 +00:00
README.md release/0.2.1 (#10) 2024-02-28 17:48:25 +00:00
renovate.json Configure Renovate (#4) 2024-01-23 18:55:46 +00:00
test.sh rewrite woodpecker-ci to publish to crates.io (#8) 2024-02-26 10:36:03 +00:00

skip

Skip part of a file.

As head will show the top of a file up-to a number of line, so skip will do the opposite, and not show the top of the file, but will show the rest.

Additionally, it can check for whole lines matching, or for a token being present on the line.

N.B.: The skip crate used to be an implementation of Skip list, by Luo Jia / Zhouqi Jiang (source). That crate will be republished as skip-list (soon).

Usage

Skip a fixed number of lines

This example reads the file from stdin.

echo "line 1
line 2
line 3
line 4" > input.txt

skip 2 < input.txt

Will output:

line 3
line 4

Skip until a number of matching lines

The whole line must match.

This example reads the named file.

echo "alpha
beta
alpha
alpha
gamma
alpha" > input.txt

skip 2 --line alpha input.txt

Will output:

alpha
gamma
alpha

Skip lines until a number of tokens are seen

Looks for a string within a line, counting each occurance.

This example reads the file from stdin.

echo "Lorem ipsum dolor sit amet, 
consectetur adipiscing elit, 
sed do eiusmod tempor incididunt 
ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, 
quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat." > input.txt

cat input.txt | skip 2 --token dolor

Will output:

Ut enim ad minim veniam, 
quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat.

It matches the first dolor on line 1, and the second on line 4 as part of the word dolore.

Skip lines until a lines with tokens are seen

Looks for a string within a line, only counting each matching line once.

This example reads the file from stdin.

echo "Lorem ipsum dolor sit amet, 
consectetur adipiscing elit, 
sed do eiusmod tempor incididunt 
ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, 
quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat." > input.txt

cat input.txt | skip 4 --token m --ignore-extras

Will output:

quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat. 

Without --ignore-extras, it would have found the fourth m on line 3.

echo "Lorem ipsum dolor sit amet, 
consectetur adipiscing elit, 
sed do eiusmod tempor incididunt 
ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, 
quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat." > input.txt

cat input.txt | skip 4 --token m

Outputing:

ut labore et dolore magna aliqua. 
Ut enim ad minim veniam, 
quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea 
commodo consequat.