File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# 🐉 ` pythoned `
22
3- ### * PYTHON EDitor: cli to edit lines via Python expressions*
3+ ### * PYTHON EDitor: A CLI tool to edit lines using Python expressions*
44
55> For Pythonistas tired of forgetting the syntax/options of ` sed ` /` awk ` /` grep ` /` tr `
66
@@ -11,7 +11,7 @@ pip install pythoned
1111(it sets up ` pythoned ` in your PATH)
1212
1313## edit
14- One must simply provide a Python ` str ` expression, manipulating the line stored in the variable ` _: str ` :
14+ You provide a Python ` str ` expression, manipulating the line stored in the ` _: str ` variable :
1515
1616``` bash
1717# get last char of each line
2525```
2626
2727## filter
28- If the expression is a ` bool ` instead of an ` str ` , then the lines will be filtered according to it:
28+ If the provided expression is a ` bool ` instead of an ` str ` , then the lines will be filtered according to it:
2929``` bash
3030# keep only lines whose length equals 3
3131echo -e ' f00\nbar\nf00bar' | pythoned ' "00" in _'
You can’t perform that action at this time.
0 commit comments