Skip to content

Commit

Permalink
syntax update
Browse files Browse the repository at this point in the history
  • Loading branch information
DininduSenanayake committed Aug 6, 2024
1 parent ef0f879 commit 3670337
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/5_inspectmanipulate2.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,13 @@ We can also chain patterns, by using logical operators `&&` (AND), `||` (OR), an
```bash
awk '$1 ~ /chromosome1/ && $3 - $2 > 10' example.bed
```
>```bash
>chromosome1 26 39
>chromosome1 32 47
>chromosome1 9 28
>```
??? success "Output"

>```bash
>chromosome1 26 39
>chromosome1 32 47
>chromosome1 9 28
>```
!!! info ""

- First pattern, `$1 ~ /chr1` specifies the regular expression (All Regular expressions are in slashes). We are matching the first field, `$1` against the regular expression `chr1`.
Expand Down

0 comments on commit 3670337

Please sign in to comment.