Aurelio Jargas
aurelio.net · Personal blog · on HN since 2010
Aurelio Jargas is a Brazilian programmer who writes about sed, regular expressions, shell scripting, and small tools like txt2regex.
What HN saysHN commenters recommend txt2regex as a regex wizard and praise his Portuguese Bash cheat sheet as the best they have seen.
18HN people shared it
12linked it in comments
6stories submitted
8story points
3 years agolast shared
2010people per year2026
Most-shared posts
- 1Sedsokoban6 people · first shared 2014
- 2Txt2regex: A Regular Expression Wizard that converts human sentences to regex3 people · 3 points · first shared 2012 · discussion on HN
- 3Sedsed: debug, indent, tokenize and HTMLize your sed scripts.3 people · 2 points · first shared 2014 · discussion on HN
- 4Sedarkanoid3 people · first shared 2015
- 5AppleScript for Python Programmers1 people · 2 points · first shared 2010 · discussion on HN
- 6AppleScript for Python Programmers1 people · 1 points · first shared 2020 · discussion on HN
- 7Canivete1 people · first shared 2018
- 8Txt2regex1 people · first shared 2012
- 9Sedsokoban1 people · first shared 2011
- 10Shell reference1 people · first shared 2023
- 11Dropbox symlinks1 people · first shared 2019
What HN people wrote when they linked it
icebraining · 2019-06-12
I guess you're doing it the way liyanage prefers. Dropbox, on the other hand, follows symlinks: https://aurelio.net/articles/dropbox-symlinks.html
guhcampos · 2018-01-21
Portuguese speakers have counted for a long time with this gem, simply the best Bash doc/cheat sheet I've ever seen on the web. This is probably my oldest bookmark still relevant after 15 years.
It's in portuguese and I'm not sure if there's an official translation, yet it's easy enough to decipher if you know bash, and Google Translate will do a pretty decent job.
I gift you "Aurelio's Swiss Army Knife of the Bash Shell" - http://aurelio.net/shell/canivete/
dfc · 2013-07-06
While not a visual tool I highly recommend txt2regex[1]. It is a regex wizard that helps you build regexs for a number of different environments. It supports:
a) -awk m) -mysql
b) -ed n) -ooo
c) -egrep o) +perl
d) -emacs p) +php
e) -expect q) +postgres
f) -find r) -procmail
g) -gawk s) +python
h) -grep t) +sed
i) -javascript u) -tcl
j) -lex v) -vbscript
k) -lisp w) -vi
l) -mawk x) +vim
[1] http://aurelio.net/projects/txt2regex/
saurik · 2021-11-12
There are a ton of little errors in this post (at the time of my leaving this comment, of course): the variable delimiter example is missing the close _, the first word example is missing the open ', and the except line 5 example is missing a space; meanwhile, these snippets will cause bad habits, such as thinking about "words" as "things involving letters", using -r instead of -E, and a massive knowledge gap with respect to appropriate use of semicolons... I'm also really confused as to why sed is suddenly "s" in one of the examples. This just isn't a very good reference, and I'm not sure if the author thinks about how "c" works, but it really needs a \ afterwards, no matter what the one specific version of sed you are using might allow :/. As someone who loves sed so much he nigh unto regrets how much he uses it: "beware".
FWIW, I'd argue that the path to true sed mastery eventually goes through the hold space, which isn't mentioned here. For some real fun, and an exercise that might change how you mentally model what sed is capable of, check out SedSokoban.
https://aurelio.net/projects/sedsokoban/
B1FF_PSUVM · 2023-10-17
Related: Sokoban in sed https://aurelio.net/projects/sedsokoban/
mftrhu · 2023-08-07
And also, by the same author, SedArkanoid https://aurelio.net/projects/sedarkanoid/
dyingkneepad · 2023-01-27
I use this all the time: https://aurelio.net/articles/shell-reference.html
bewuethr · 2018-01-22
Aurelio is the madman/genius behind Arkanoid in sed[1], Sokoban in sed[2] and sedsed, a sed debugger[3]. I have no trouble believing that he has a few shell tricks up his sleeve.
[1]: http://aurelio.net/projects/sedarkanoid/
[2]: http://aurelio.net/projects/sedsokoban/
[3]: http://aurelio.net/projects/sedsed/
abecedarius · 2014-06-27
I wrote that, and I gotta say sed is a much crazier target.
More sed fun: http://aurelio.net/projects/sedsokoban/
caioariede · 2014-03-25
There is Sokoban in sed too.
For who is interested in other games written in sed.
http://aurelio.net/projects/sedsokoban/
zorked · 2011-04-10
Sokoban in sed: http://aurelio.net/soft/sedsokoban/
i336_ · 2015-09-16
Related:
# FORTH in Bash
- More info: https://en.wikipedia.org/wiki/Bashforth
- The script: http://web.archive.org/web/20141107021446/http://www.forthfreak.net/ba…
- The extension WP mentions: https://raw.githubusercontent.com/ForthHub/ForthFreak/master/SmallOOPS
- A screenshot: http://web.archive.org/web/20141106213840/http://www.forthfreak.net/in…
# Tetris in Sed (by a russian girl)
- Info (in Russian): http://uuner.livejournal.com/55238.html
- Working downloads: https://github.com/uuner/sedtris
# Arkanoid and Sokoban written in sed
- http://aurelio.net/projects/sedarkanoid/
- http://aurelio.net/projects/sedsokoban/
# Sed LLVM emitter
- TBD