add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
25
old_snippets/percol-to-pick-lines.en.md
Normal file
25
old_snippets/percol-to-pick-lines.en.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: "percol to pick lines"
|
||||
seo_description: "How to use percol to pick lines mid pipe"
|
||||
date: 2023-05-16T15:37:29+02:00
|
||||
draft: false
|
||||
snippet_types:
|
||||
- percol
|
||||
---
|
||||
|
||||
Deep in a emac tutorial I discovered this hidden gem.
|
||||
|
||||
> "percol adds flavor of interactive selection to the traditional pipe concept on UNIX."
|
||||
|
||||
[project github](https://github.com/mooz/percol)
|
||||
|
||||
You can simply place it in the middle of a pipe and pick the options you want.
|
||||
|
||||
Example:
|
||||
|
||||
```shell
|
||||
$ BUCKET="s3://cool-bucket" aws s3 ls $BUCKET | awk '{print $4}' | percol |sed "s;^;${BUCKET}/;" | xargs aws s3 rm
|
||||
delete: ...
|
||||
```
|
||||
|
||||
{{< asciicast-with-caption id="585386" title="demo" >}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue