Skip to content

Commit

Permalink
Readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hirak99 committed Oct 30, 2023
1 parent f90a14f commit 0a641df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ Similar to list, but as a machine readable json.

This can be useful to build commands. For instance, with bash you could use `jq` to filter -

```
```sh
# Filter all snaps created during installation.
yabsnap list-json | jq -c 'select(.trigger=="I")'
# Filter all snaps created during installation, and using home.conf.
yabsnap list-json | jq -c 'select(.trigger=="I" and (.config_file | endswith("/home.conf")))'
```

Or restructure -
```
```sh
# Show only the timestamps.
yabsnap list-json | jq '.file.timestamp'
```
Expand Down

0 comments on commit 0a641df

Please sign in to comment.