-
Bash support tcp connection out of the box :)
So you can write something like
#!/bin/bash webhost="gioorgi.com" exec 5<>/dev/tcp/$webhost/80 echo -e "GET / HTTP/1.1\\r\\nHost: $webhost\\r\\nContent-Length: 0\\r\\n\\r" >&5 # get reply: HTTP/1.1 301 Moved Permanently^M cat <&5
-
runif
May 28, 2020 · 2 min read ·
Idempotent and minimal python 3 library for rapid scripting. Provide support for creating file, adding data to them, patching and so on.
Why?
(Ba)sh scripting is very easy to setup. So we end up using it all the time for simple procedural script.
Read More -
The project has been renamed into “runif”. This page left only for Google Search happiness.
Pybash is a python library to make python script as easy as in Bourne Again Shell (Bash).
Bash scripting is very easy to setup. So we end up using it all the time for simple procedural script.
Read More -
Bash scripting has evolved a lot in the last ten years.
I get used to relay on bash for all normal “data domination” tasks (like file system refactorings, database extraction and reporting and so on) and switching to python/ruby/perl when the complexity gets bigger. I didn’t imagine bash is even more powerful :) This article by Robert Muth so you new nice tricks: I add here some other like mapfile and stress the most important one.
Update 2016 Last but not least,if you do now know about bash history, this link will teach you a huge set of tricks Updated 2019 Bash Bible will further extend the topic.
Read More
