Twitter | Search | |
Roman 🐡
A webmaster (). I write Unix/BSD how-tos and shell scripts (incl. ). I'm here to help you with .
28,068
Tweets
122
Following
2,136
Followers
Tweets
Roman 🐡 8m
A quite busy weekend. :) Moving things around.
Reply Retweet Like
Roman 🐡 12m
Translating word by word and checking a dozen times with Google Translate. Both directions. English <-> Dutch. It's super slow.
Reply Retweet Like
Roman 🐡 15m
Replying to @gumnos @freebsdfrau
Reply Retweet Like
Roman 🐡 18m
Replying to @freebsdfrau @gumnos
Reply Retweet Like
Roman 🐡 42m
Replying to @freebsdfrau @gumnos
I guess, got the idea. I'll try it a bit later. Thanks again. Your awk skill is amazing!
Reply Retweet Like
Roman 🐡 retweeted
Roman 🐡 47m
Reply Retweet Like
Roman 🐡 retweeted
Roman 🐡 46m
Replying to @freebsdfrau @gumnos
Reply Retweet Like
Roman 🐡 46m
Replying to @freebsdfrau @gumnos
Reply Retweet Like
Roman 🐡 47m
Reply Retweet Like
Roman 🐡 retweeted
Charlie Owen 58m
Replying to @sonniesedge
The web is the intersection between tech, art, and usability. It is an incredibly unique and beautiful medium. The second you start assuming it's just about tech you've lost your attachment to it.
Reply Retweet Like
Roman 🐡 retweeted
🙇🏻‍♂️ 1h
echo 'Test<h1>test</h1><br/>' | awk -F'[<>]' '{ for(i=1;i<=NF;i++) if(i%2==0) { printf "%s","<"toupper($i)">" } else { printf "%s", } }'
Reply Retweet Like
Roman 🐡 retweeted
FreeBSD Frau 1h
Replying to @gumnos @romanzolotarev
🙃 awk 'BEGIN{while(getline)b=b "\n" $0;b=substr(b,2)}END{t=b;while(match(t,/<[^>]*>/)){h=h substr(t,1,RSTART-1);r=substr(t,RSTART,RLENGTH);t=substr(t,RSTART+RLENGTH);if(match(r,/^<[[:space:]]*[a-zA-Z]+/))r=toupper(substr(r,1,RLENGTH)) substr(r,RLENGTH+1);h=h r}h=h t;print h}' 😊
Reply Retweet Like
Roman 🐡 1h
Replying to @freebsdfrau @gumnos
Thanks! Now I can see the pattern at least, it's getting easier over time. 😎
Reply Retweet Like
Roman 🐡 retweeted
Tim Chase 19h
Replying to @canadianbryan
I protest. It comes with a "-f" option to fix your code. Let me see your emacs/vi/ed do that! 😉
Reply Retweet Like
Roman 🐡 3h
Replying to @notthebeeee @FiLiS
Yay!
Reply Retweet Like
Roman 🐡 retweeted
Wolfgang 5h
What can be better than coming home to find 55 (!!!) RUN BSD stickers in your mailbox? Thanks, ! 🖤
Reply Retweet Like
Roman 🐡 3h
Replying to @gumnos @freebsdfrau
Attributes stay untouched: <IMG src="me.jpg">
Reply Retweet Like
Roman 🐡 5h
Thanks! This won't work for multiple tags per line, I guess.
Reply Retweet Like
Roman 🐡 5h
That's a temporary hack. I wanted to parse some old HTML files. Found another way to solve that task, but still curious how to do that with BSD awk.
Reply Retweet Like
Roman 🐡 7h
How to convert HTML tags to uppercase with BSD awk or sed? Convert 'text<br>another text' to 'text<BR>another text' cc P.S. IIRC, with GNU we can do sed 's/<[[:lower:]]*>/\U&/g'
Reply Retweet Like