Bitsized AWK @mawkic
Learn AWK tweet by tweet Joined November 2020-
Tweets161
-
Followers670
-
Following2K
-
Likes20
😎 TIL: ECMAScript / Javascript is influenced by AWK You're welcome #javascript 🤪
@m_ou_se @spacekookie Do you still have the source? More bookkeeping in AWK: 😋
📚 Weekend Read 📚 Many years ago, @WardCunningham has written a beautiful AWK script to calculate the expenses of their skip trip. c2.com/doc/expense/ 💡 This is AWK at its best.
😎 You agree, don't you? 😎
"In terms of programming languages you get the most bang for the buck by learning AWK." - Brian Kernighan podquotes.io/quote/21
🤓 How to print the first and the last line in a file? 🤓 awk 'NR==1; END{print}
🤔 Do you want to write better and portable AWK scripts? Of course you want 😄 💡 GAWK (GNU AWK) supports --lint: > awk --lint 'and($1,$2)' file.txt awk: cmd. line:1: warning: `and' is a gawk extension
awk is the coolest tool you don’t know portal.drewdevault.com/2021/05/03/awk…
🤔 Do you find your scripts with all these $1, $2 etc unreadable? 🤔 💡 Try giving them names: > docker ps | awk 'BEGIN{cont_id=1;image=2;}$image=="postgres"{print $cont_id}'
🤔 Is there an AWK script you don't understand? Post it here ⬇️
@UnixToolTip @jvlmdr And in case somebody wonders how this works: 🤓
🤔 How to delete empty lines from a file? 🤔 awk NF file.txt 💡 NF is the number of fields. If the number of fields is 0, AWK does not print the line, but in all other cases, the line is just printed.
🤓 New week new trick! 🤓 🤔 Replace a string in AWK: > awk '{gsub("bob", "anna")}1' file.txt ➡️ replace "bob" with "anna" ➡️ 1st param can be a regex (eg. /bob/) ➡️ 3rd param is optional (default $0 / line) 💡sed might be more suitable for such tasks 😉
How to print only odd lines 🤓
> awk 'NR%2 {print $1}' file.txt anna chad 👨🎨 This prints odd lines, because %2 (modulo 2) returns 0 if the NR is divisible by 2. Since 0 is false, those lines are not printed. ➡️ The block is easy: just print the first column
A third of the participants has known AWK for more than ten years 🤯
@sylv3on_ @TheCyberSecHub You're missing AWK 😉
🤔 Did you know you can write a self-contained AWK script? 🤔 ➡️ Given a file: > cat script.awk #!/usr/bin/awk -f { print $0 } ➡️ Make it executable > chmod +x script.awk ➡️ And run it > ./script.awk file.txt 🐧 If only everything was so easy #Linux 🐧
😍 Last July, @lexfridman interviewed Brian Kernighan, one of the authors of AWK. Listen to Brian explaining why AWK is still very useful today. youtube.com/watch?v=W5kr7X…
Command Line Magic @climagic
186K Followers 10K Following Cool Unix/Linux Command Line tricks you can use in $TWITTER_CHAR_LIMIT characters or less. Here mostly to inspire. Also on https://t.co/YYJE9JpVnF
Tim Chase @gumnos
2K Followers 271 Following Christian geek, husband, father; punster; don't take too seriously; whacko behind @ed1conf [GPG: A8AC DE26 CB08 38D4 78E2 F9D3 AEA6 D898 A54C 94FF]
KTa @4slk4
6 Followers 586 Following
Kudzai @KudzaiAlpha
27 Followers 332 Following
Eduardo Basso @dubasso
60 Followers 2K Following
Schelp @_schelp
1 Followers 160 Following
Mihai Apostol @apmihai2005
2 Followers 32 Following
Eldrid Rensburg @EldridRensburg
38 Followers 3K Following In the beginning, the Universe implemented Unix (Linux) & C (C with Classes) & stated: let there = vars; & /* commented that IT was good */ :-) ¯¯¯\_(ツ)_/¯¯¯
fullstop @iamfullstop
33 Followers 253 Following Bug Hunter | Security Researcher | Red Team Operator No System is Secure. Terminal-born 💻, payload-fed , chasing 200 OKs through 403s for the thrills⚡
Ricardo Mota @ricardoflmota
23 Followers 281 Following
naidu @Naidu72
12 Followers 154 Following
Tony @tony2176
559 Followers 3K Following sober guy,54 yrs,bookworm,computer, Linux & Internet aficionado, knowledge junkie, lifelong learner. Use Arch Linux.Nerdy Introvert . Retweets != endorsements.
Jaime Bedoya @jaime_bedoya
677 Followers 5K Following
AtLastSecSrv#9793 @LauraStLouis4
121 Followers 1K Following (1036909302935474216) https://t.co/itAP3STkTn (discordapp)
MR.ROBOT @MRROBOT0909
4 Followers 449 Following
Sozdar Mohammad @ssozdar007
186 Followers 4K Following
Rishi K. 𝕏 @___rishi
36 Followers 834 Following Cybersecurity Professional | SOC Analyst @Capgemini
mayabike @zhya
217 Followers 4K Following
riton @olivierh95100
2 Followers 1K Following
TJ Tarun @I7tarun
100 Followers 1K Following If you don't like the road you're walking, start paving another one. Use 21/90 rule: It takes 21 days to create a habit,90 days to create a lifestyle
Krishna @CreedHS
115 Followers 468 Following Keen interest in Geopolitics, Tech, Defense, Energy and Climate Change. [[[Its easier to Bleed than to Sweat]]]
Snodig @Snodig1
24 Followers 3K Following
Myysophia @ninesun14
98 Followers 1K Following linux player cloudnative golang next.js ai full stack developer
Abhishek Yadav @Abhiboss0077
0 Followers 268 Following
Mr. Burraaq Karraayyu... @ballamii
17K Followers 1K Following Itiyyophiyyaan lafa, ilmoo namumma fi ulfina keenya nurra fuute wadaroo morma keenyatti nuuf keessa nu fannifnu. Jaalala wadaroo qabu Itiyyophiyya haa ijaaru.
Midnight Marauder @M1dnightMaraudr
56 Followers 454 Following
CrisWeb🇧🇷 @ccrisweb
371 Followers 1K Following Se nossa voz não tivesse poder, eles não estariam tentando silenciar! SUPREMO É O POVO.
Bert Sayers @BertSayers
55 Followers 104 Following *nix nerd, lover of all things sci/fi and fanasy, Dragon Con volunteer
Suraj Kushwah @SurajKu28732749
1 Followers 164 Following
Camilo Alcántara C �... @camiloalcantara
1K Followers 1K Following Wildlife Conservation, Land Cover Science & Landscape Ecology. Tools: Stats, Remote Sensing, GIS. Professor @UdeGuanajuato SNI I, PhD U. Wisconsin-Madison
rn3ooys @RN3Hooys
5 Followers 186 Following
Ravi ☀️ @World_Of_Ravi
0 Followers 332 Following
Jean-Paul Miéville @jpmieville
86 Followers 1K Following
Jojo' @gugnyr
25 Followers 130 Following
1ntrud3r @appurajv10
80 Followers 948 Following Indian 🇮🇳 | SpamAnalyst | security enthusiast | animal lover | currently living in Japan
Anaksunamun @Anaksun11883246
82 Followers 1K Following #MensLivesMatters #MenToo Anti-Feminist Contact MyNation for Mens issues false cases #498A Register on https://t.co/IgXFfr1mV6
RbnM Free ||*|| 🌐�... @RbnMndz
623 Followers 3K Following Catalonia new state of Europe! #CATEXIT & #ref1oct was about democracy & peoples will! És una qüestió de democràcia i voluntat del poble! Shame on 🇪🇸🇪🇺
Linux Handbook @LinuxHandbook
159K Followers 77 Following Learn to use Linux commands, SysAdmin tools, Self-hosting, Docker and other DevOps stuff with us.
Linux Inside: The Ide... @tecmint
135K Followers 19 Following Tecmint - Linux, AI & Open-Source Made Simple 🐧🚀 Follow us for: - Easy Linux Tips and Tutorials 💡 - The Latest on Open-Source & AI 📰 - Fun Linux & AI 🤣
Ubuntu @ubuntu
704K Followers 1K Following Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.
Tim Chase @gumnos
2K Followers 271 Following Christian geek, husband, father; punster; don't take too seriously; whacko behind @ed1conf [GPG: A8AC DE26 CB08 38D4 78E2 F9D3 AEA6 D898 A54C 94FF]
Nicolas Krassas @Dinosn
157K Followers 766 Following Head of Threat & Vulnerability Mgmt @ Henkel AG & Co. KGaA https://t.co/NC1orlKZLB Posting content that I find interesting.
Binni Shah @binitamshah
141K Followers 165 Following Linux Evangelist, Malwares, Security enthusiast ,Investor,World Economy, Finance,Contrarian , Philanthropist , Reformist , Sigma female [email protected]
Ben Sadeghipour @NahamSec
248K Followers 1K Following Cofounder @hackinghub_io | Advisor @CaidoIO. I hack companies and make content about it. #NahamCon organizer. ex @hacker0x01🇮🇷
TryHackMe @tryhackme
306K Followers 83 Following An online platform that makes it easy to break into and upskill in cyber security, all through your browser.
Signal @signalapp
621K Followers 23 Following Signal is a nonprofit end-to-end encrypted communications app. Privacy isn’t an optional mode, it’s the way Signal works. Every message, every call, every time.
I Am Devloper @iamdevloper
396K Followers 0 Following just your friendly neighbourhood printer fixer 💸 promotional content: https://t.co/mz9fc9Cprl https://t.co/JcbaPh9EXs - daily dev puzzle
Eric Wastl @ericwastl
29K Followers 0 Following Created https://t.co/Y9jHxpfLdQ, https://t.co/2Cg3Tc4ozv, https://t.co/BSHyKj3GKD, https://t.co/Ru4QENCKrM; Principal Architect @ACVAuctions
Cassidy @cassidoo
180K Followers 687 Following Making memes, dreams, & software! Sr. Director of Dev Advocacy at @github. Married to @ijoosong, mom of 2 nerdy babies. She/Her ✝️ Subscribe to my newsletter!
Tom🌶\(^-^)/🌶 in... @TomLawrenceTech
32K Followers 1K Following ⚠Tech Enthusiast, Open Source Advocate, Content Creator, DM's are not for tech support but forums are. ⚠ https://t.co/xbxWZOT69J
Kent C. Dodds 🏹 @kentcdodds
320K Followers 453 Following Husband, 6x Dad, Latter-day Saint, Dev, Educator 🏹 https://t.co/bGlNcdW2iJ ⚡️ https://t.co/X8fNGbdL2y 🌌 https://t.co/pPQmnZS6rR 🚀 https://t.co/NYn5aJVGve 🏆 https://t.co/U5KafpJTZp
KTa @4slk4
6 Followers 586 Following
wikikrishna @wikikrishna1
64 Followers 2K Following
CheyiLin @CheyiLin
8 Followers 98 Following
The B Guy @BoalBruno
4 Followers 539 Following
Greg Beyerlein @Greg_HB
116 Followers 2K Following DevOps (CI/CD) SRE, SP/DB Engineer, Alliance Manager, CSM, CSP, Lean Six Sigma Master Black Belt, Scrum Coach, Parent, TKD Black Belt
M C @altf9ctrlf9
38 Followers 1K Following
Trevor Bedford @trvrb
402K Followers 748 Following Scientist @fredhutch, studying viruses, evolution and immunity. Collection of #COVID19 threads here: https://t.co/Yc4fun5rcp
TypeScript @typescript
417K Followers 50 Following TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
TPG @tpg
21K Followers 137 Following We are a global alternative asset firm with a long history of investing in growth, change, and innovation. Disclaimer information: https://t.co/nd59aYqG7y
podquotes @podquotesio
41 Followers 558 Following Memorable Quotes From Podcasts | Visit https://t.co/v9KFWVJFtb
Jack Rhysider 🏴... @JackRhysider
171K Followers 4K Following Creator of @DarknetDiaries. Tell me a good hacker story. 💻🔦⤵️🐰🕳️ Discord: https://t.co/qxanMuJ5X2
Podcastindex.org @PodcastindexOrg
4K Followers 481 Following The Podcast Index is here to preserve, protect and extend the open, independent RSS based podcasting ecosystem. ⚡[email protected]
Adam Langley @agl__
12K Followers 149 Following
Fastned @Fastned
11K Followers 554 Following We moved the Disco Ball party over to Threads and BlueSky! Follow us there for everything Fastned⚡
BloombergNEF @BloombergNEF
76K Followers 477 Following BloombergNEF (BNEF) is a strategic research provider covering global commodity markets & disruptive technologies driving the transition to a low-carbon economy.
Vishv Patel @_Vishv_Patel_
8 Followers 173 Following
Kellan. @kellanrad
293 Followers 302 Following Seattle Alt Rapper & Producer. Rarely here. For the good shit hit my IG @kellanrad
Mahesh kariya @itsmaheshkariya
77 Followers 641 Following @ To feel every moment @To save Life @To Respect Every one @ Become A new Innovator @ Trust Always in reality (real life)rither than Drama
Tubay paul @tubaypaul89
9 Followers 3K Following West Bengal Raiganj India Uttardinajpur. Pin 733134
vic:\torhuisman @victorhuisman
498 Followers 4K Following Father | IT entrepreneur | runner | newsjunky | hacker | Swiss knife | early adopter | D66 Delft
けやは @katy_zahra
127 Followers 922 Following وَإِذَا خَاطَبَهُمُ الْجَاهِلُونَ قالوا سلاما.صدق الله العظيم🌹
Ralph Patterson @MrPattersonsLab
7 Followers 124 Following MrPattersonLab transcending informational education with understanding and applying scientific knowledge to illuminate and solve everyday problems.
Senthil @Senthil09776200
1 Followers 8 Following
martin rossi @martinrossi332
10 Followers 57 Following
Jomi Technologies @JomiTechnologi1
3 Followers 27 Following We are a group of seasoned and well formed IT experts with a global presence.
Milan Radisic @MilanRadisic3
1 Followers 5 Following
ethan @ethan22059127
4 Followers 106 Following
AYOUB Ly @AYOUBLy8
7 Followers 666 Following
= @dallasluther
89 Followers 1K Following
Linux Nil Filesystem @linuxNilFS
2K Followers 121 Following Development of the Nil filesystem for Linux
Fedora Linux Users @fedorausers
5K Followers 486 Following User discussion of Fedora Linux releases.
Neckbeard Hacker @NeckbeardHacker
18K Followers 24 Following Fat guy who knows C++. Hire me to replace @HipsterHacker's code with a set of very small shell scripts.
Bloomington Tweeters @bloomingtweeps
6K Followers 4K Following Keeping tabs on the Bloomington, Indiana Twitter community.





























