pz
awk-hack-the-planet
pz | awk-hack-the-planet | |
---|---|---|
11 | 5 | |
717 | 230 | |
0.4% | - | |
0.0 | 3.8 | |
about 2 years ago | 8 months ago | |
Python | Ruby | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pz
-
Show HN: Pypipe โ A Python command-line tool for pipeline processing
Cool!
I was going to ask how this differs in broad strokes from pz, but when I went to get the reference link found that pz hasn't been updated in two years, so that's one big difference.
https://github.com/CZ-NIC/pz
- Python import statements make it inconvenient for inline use in shell scripts
- Program mentioned on here - can anyone remember it?
-
Show HN: Prig โ like Awk, but uses Go for โscriptingโ
TIL about pz (kind of like this but using Python) -- that's very cool! https://github.com/CZ-NIC/pz
-
Easily handle CLI operation via Python instead of regular Bash programs
This seems very useful!
The behaviour of auto-imports https://github.com/CZ-NIC/pz#auto-import seems bit scary:
> Caveat: When accessed first time, the auto-import makes the row reprocessed. It may influence your global variables. Use verbose output to see if something has been auto-imported.
It sounds like this could cause some very subtle bugs. Maybe a strong and clear warning when a line is being reprocessed would help.
- Easily handle day to day CLI operation via Python instead of regular Bash programs.
- GitHub - CZ-NIC/pz: Easily handle day to day CLI operation via Python instead of regular Bash programs.
- Pz: CLI operation via Python instead of regular Bash programs
awk-hack-the-planet
-
Aho โ a Git implementation in Awk
Disclaimer: self promotion
If you're looking to get into Awk, and you learn well from a lecture style, I put together a talk for Linux Fest Northwest some years ago and recorded it for Youtube: https://youtu.be/E5aQxIdjT0M
-
(F18) cis student need help writing an awkward command file for price calculation, professor won't help.
Re awk (which equally has its r/awk), the combination of presentation, exercise and GitHub repo of training data by Benjamin Porter is a nice resource, too.
-
Easily handle CLI operation via Python instead of regular Bash programs
For people that know Ruby, if you haven't explored Ruby's CLI abilities, you definitely, definitely should. When I was building my (free and open source) awk course[1] I fell in love with awk. When I later found out that Ruby has some of the same features, it changed my life: I
https://robm.me.uk/2013/11/ruby-enp/
https://benoithamelin.tumblr.com/ruby1line/
[1]: https://github.com/FreedomBen/awk-hack-the-planet
-
I wrote a super tiny Linux system fetch script in just shell commands
Awk: Hack the Planet It has a youtube vid and problems to work through.
-
Getting better at Linux with 10 mini-projects
Kind of a shameless plug, but you mentioned wanting to get better at Awk. I had that same desire and created a small course based on what I learned. The course got great feedback.
There is a video presentation, and a set of "challenges" you can use to incrementally get more complex with awk, starting from super simple.
The challenges repo is on github here: https://github.com/FreedomBen/awk-hack-the-planet
If you want to watch the videos, there are links in the github repo but for convenience:
Presentation video: https://youtu.be/43BNFcOdBlY
My solutions to exercises video: https://youtu.be/4UGLsRYDfo8
What are some alternatives?
Command-line-text-processing - :zap: From finding text to search and replace, from sorting to beautifying text and more :art:
bashcrawl
zsh-defer - Deferred execution of Zsh commands
coreutils - upstream mirror
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
scripting_course - :notebook: Books, reference guides and resources on Regular Expressions, CLI one-liners, Scripting Languages and Vim.
nio - Low Overhead Numerical/Native IO library & tools
simple-awk - Simple and practical guide to awk.
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
sysfetch - A super tiny system information fetch script written in BASH
sheldon - :bowtie: Fast, configurable, shell plugin manager
starship - โ๐๏ธ The minimal, blazing-fast, and infinitely customizable prompt for any shell!