AWK Is Still Very Useful | Brian Kernighan and Lex Fridman

AWK Is Still Very Useful | Brian Kernighan and Lex Fridman

Lex Clips

3 года назад

24,061 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bish-Jyag
Bish-Jyag - 12.11.2023 14:27

Great scripting langauge. Now, need to update this programming language for machine learing too. Any movement for that?

Ответить
life eternal
life eternal - 07.10.2023 17:41

Well, this was awkward

Ответить
Desi
Desi - 19.03.2023 12:51

I’ve been using awk to do value-based filtering on larger-than-memory CSVs. A lifesaver!

Ответить
Londo Molari
Londo Molari - 17.03.2023 03:46

It's convenient and natural because he's used it so long it is "burned" in to his brain. For me, perl is the same. I've used it so much that i quickly conceive of solution.

Ответить
Mark Green
Mark Green - 05.03.2023 17:49

yes, cygwin is great!

Ответить
Rhyme& Reason
Rhyme& Reason - 07.01.2023 00:25

I started a new job once and the boss (who was a Windows user) was showing me the ropes. First task every morning he said was to rename and organize hundreds of files that auto-downloaded every night. He proceed to show me by manually renaming a file and dragging and dropping it to a correct folder based on part of the file name. He said he spent 1.5 hrs every morning doing this. I wrote an awk script in 10 mins that did the job in 5 secs. He couldn't believe it. I said "I just saved you over $10K / year in labor... I hope I'll see some of that in my raise after my 3 month probation period"! And I did...

Ответить
Rhyme& Reason
Rhyme& Reason - 07.01.2023 00:09

It's sad that Bill Gates gets so much misguided credit (and wealth) by the common man as being a programming "genius" when IMHO he never innovated one single thing while REAL programming giants like Kerighan, Richie, Stallman, Wall, etc. remain largely unknown.

Ответить
BatchRocketProject
BatchRocketProject - 10.10.2022 15:31

I use awk often, both as a quick command-line tool and for programming more involved data processing tasks. Not mentioned, but along with most utilities, awk is standard on all Macs since (more or less) forever.

Ответить
c3 - vids & shorts
c3 - vids & shorts - 19.01.2021 11:06

I use awk sed and grep on a daily basis

Ответить
Alkis05
Alkis05 - 21.12.2020 03:42

for i in $(find . | grep -e '\.<file extension>' ); do wc -l $i; done | awk '{sum+=$1}END{print sum}'
That is my command for counting lines in source code lines.
There is probably a better way to do it, but it gets the job done.

Ответить
Alkis05
Alkis05 - 21.12.2020 03:35

WSL is great. I even got archlinux and i3-wm running on windows now. I can flip back and forth just by switching a workspace.
Of course, it is not a substitute for linux, but it is good to have it integrated on windows.
It is great for programming, because it is so much easier to download software with linux and keep things up to date.
I have some software in windows that I can't live without, unfortunately.

Ответить
Doug Coulter
Doug Coulter - 05.08.2020 10:48

I'll just clutch my perl for those sorts of things ;~)

Ответить
Pablo Gutierrez
Pablo Gutierrez - 26.07.2020 05:36

Listening to Brian Kernighan is like listening to everything that is right!!!

Ответить
Spacebar
Spacebar - 25.07.2020 09:09

Just wrote a script that used awk for my job today, it's an immensely useful programming language still

Ответить
Terry Henyo
Terry Henyo - 24.07.2020 10:43

WSL (Windows Subsystem for Linux)

Ответить
j2simpso
j2simpso - 23.07.2020 16:27

Brian: "MS-DOS was a pretty pathetic operating system"
Microsoft has left the chat

Ответить
Dave Rei
Dave Rei - 21.07.2020 07:02

I remember being rescued by grep and awk in the 90's. I'd accidentally did a chown -r .* in the /usr/users filesystem as root, one of those 4am on Monday mornings mistakes you make when doing some out of hours says admin, and affected hundreds of users that would turn up in a couple of hours. I quickly piped the password and groups files via the command line into grep and awk to find the affected user directories and the owner account names and create a new script that would change the ownership back. Took a few minutes to write and run, but saved me many hours to do manually. Thank you Brian - awk definitely rocks :-) and is one of my favourite UNIX tools.

Ответить
Lounge lizard
Lounge lizard - 21.07.2020 01:56

Had to look up the acronym "AWK": The name stands for Aho, Weinberger and Kernighan. Brian is too modest to say that!

Ответить