mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
adedd string blocks link in tips and tricks
This commit is contained in:
parent
e397591cb4
commit
7f0d38fe90
@ -55,6 +55,11 @@ The `strenv` operator is a great way to handle special characters in strings:
|
||||
VAL='.a |!@ == "string2"' yq '.a = strenv(VAL)' example.yaml
|
||||
```
|
||||
|
||||
## String blocks and newline issues
|
||||
There are a couple of tricks to getting the right string representation, take a look here for more details:
|
||||
|
||||
https://mikefarah.gitbook.io/yq/operators/string-operators#string-blocks-bash-and-newlines
|
||||
|
||||
## Quotes in Windows Powershell
|
||||
|
||||
Powershell has its [own](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about\_quoting\_rules?view=powershell-7.1) way of handling quotes:
|
||||
|
Loading…
Reference in New Issue
Block a user