marcel
Awk-Batteries
marcel | Awk-Batteries | |
---|---|---|
13 | 8 | |
332 | 12 | |
- | - | |
9.3 | 1.8 | |
25 days ago | over 2 years ago | |
Python | Awk | |
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.
marcel
-
Generating graphs from the marcel command line
Marcel is one of the pipe-objects-instead-of-strings shells (https://marceltheshell.org).
Here's a blog post showing how to use marcel to generate graphs directly from the command line.
https://www.marceltheshell.org/post/generating-graphs-from-t...
-
Xonsh: Python-powered, cross-platform, Unix-gazing shell
Check out marcel (https://marceltheshell.org). It's yet another pipe-objects-instead-of-strings shell (like nushell). Unlike nushell, you pipe Python values. Marcel has no sublanguages (like awk, sed, ...). Instead, when logic is needed, you write Python code, delimited by parens. So:
(USER)
-
Marcel the Shell
It is a useful correction. This project predates the release of the movie: https://github.com/geophile/marcel/commit/bb6adacbb6b3a683ce...
-
Object SHell
Check out marcel: https://marceltheshell.org, and https://github.com/geophile/marcel. Both marcel and nushell start with the idea of piping structured data instead of strings, which is incredibly powerful. (This also applies to osh. I am the author of osh and marcel.)
Marcel (and osh) rely on Python types and language where typical shells have sublanguages. So instead of awk or find and their sublanguages, you just use Python. Instead of piping strings, you pipe streams of Python values.
Marcel lets you use Python on the commmand line. It also has an API which allows you to use shell-like commands inside of Python programs.
-
Shshsh is a bridge connects Python and shell
I wrote a shell, marcel, that pipes Python values instead of strings: https://marceltheshell.org.
It also does the inverse, allowing you to run marcel commands from Python, e.g. https://www.marceltheshell.org/scripting-1
-
The Case for Nushell
Check out my entry, marcel: https://marceltheshell.org.
E.g., find the newest vlc instance and kill it (a command that an acquaintance needs frequently, for some reason):
ps | select (p: p.name == 'vlc') | sort (p: p.create_time) | tail 1 | (p: p.signal(9))
- The Awk Programming Language, Second Edition
Awk-Batteries
-
The Awk Programming Language, Second Edition
It's nice that everyone is supporting this, I've written a portable awk module that takes control of the parsing and it is SLOW (and a little buggy). I'm a little bummed that nobody will use it but this is truly a step in the right direction.
I guess for the people that are still using nawk, you can set up an AWK envvar so you can { awk -f $AWKU/ucsv.awk -f <(echo '{print NR, $1}') }
https://github.com/Nomarian/Awk-Batteries/blob/master/Units/...
-
Need help with awk script that keeps giving me syntax errors
if you have gawkextlib, you can -i csv, you can also download this and put it in your $AWKPATH then you just -i ucsv and use the csv file as normal. if you need an array with headers let me know.
-
Modernizing AWK, a 45-year old language, by adding CSV support
I wrote a parser that does what -F, does but correctly, you can see that its actually very difficult. Not only that, but there are extensions to csv, some csv have a header which means that instead of $1 $2 $3 ..., you just name the field instead, which means you have to ignore the first record. there's also other things, but csv is a difficult format to parse.
- Using AWK with CSV Files
-
Python was listed on "Harmful things", but why though ? http://harmful.cat-v.org/software
My attempt in awk
- Understanding AWK
- Understanding Awk
-
Getting better at Linux with mini-projects
awk lua
What are some alternatives?
awk-vm - A virtual machine and assembler written in AWK.
microperl-standalone
asm - scriptable runtime-writable livecd / hardware wrangler
sparklines - Text-based sparklines for the command line mimicking those of Edward Tufte.
busybox-w32 - WIN32 native port of BusyBox.
csvquote - Enables common unix utlities like cut, awk, wc, head to work correctly with csv data containing delimiters and newlines
iterable-subprocess - Python context manager to communicate with a subprocess using iterables: for when data is too big to fit in memory and has to be streamed
awk - Random AWK code
ioccc-obfuscated-c-contest - IOCCC International Obfuscated C code contest entries
maga-csv - GAWK CSV extension
carbon - :black_heart: Create and share beautiful images of your source code