@kaixin@snac.bsd.cafe avatar kaixin , to random

Having been using as daily desktop operating system but I never thought about this. Remotely remind me of the arguement in

Debian's AWKward essential set

@aartaka@merveilles.town avatar aartaka , to random

Tested with generating simple (1) scripts. Not even close. and syntax keeps getting generated into the responses. And overall ed(1) use is pretty nonsensical.

So, I urge you, in case you want to become an irreplaceable professional and an -resistant person… use ed(1)!

@itsfoss@mastodon.social avatar itsfoss , to random

40+ years later, and AWK is still a powerhouse! 💻 Brian Kernighan, the co-creator of AWK, explains why it remains essential for text processing.

Original Video: AWK Is Still Very Useful | Brian Kernighan and Lex Fridman

video/mp4

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@gumnos@bsd.cafe avatar gumnos , to random

My love for and (as well as other Unix text-processing tools) was rejuvenated by a recent nerdsnipe¹ problem someone shared.

They had a WordGrinder² file which is a container-type format that can hold multiple documents (such as multiple individual chapters of a book) in the same document file. As far as we could tell, there's no native way to flatten all those sub-documents into a flat single file, and there was no way to export them into a multipart output document.

Fortunately, that WordGrinder file format is just plaintext. It didn't take more than ~10 minutes to reverse-engineer the basics of the file-format and then cobble together an awk(1) one-liner to do the flattening. Worked perfectly on the first try.


¹ https://www.reddit.com/r/commandline/comments/1nkxz4t/is_there_any_way_to_massexport_a_document_set_in/

² http://cowlark.com/wordgrinder/index.html

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
spacemagick , to Veronica Explains in The modern web sucks. My band's website doesn't.
@spacemagick@mastodon.social avatar

@vkc@tinkerbetter.tube avatar vkc
Did anybody else used to write websites using awk or was it just me?
🙂

@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@me@social.jlamothe.net avatar me , to random

I am in urgent job search mode, so I'm gonna throw this out here and see if anything comes of it.

I am a , fluent in both and . I have experience with several programming languages. My strongest proficiency is with and #C. I also have a reasonable grasp of , , , , , system administration, scripting, , , some (common, scheme, and emacs), and probably several others I've forgotten to mention.

I am not necessarily looking for something in tech. I just need something stable. I have done everything from software development, to customer support, to factory work, though my current circumstances make in-person work more difficult than remote work. I have been regarded as a hard worker in every job I have ever held.

@arq@fosstodon.org avatar arq , to random

Quick list of all git repositories URLs, you have locally:
<code>
awk '/url/{print $3}' */.git/config
</code>

<code>
find . -name ".git" -type d | sed 's//.git//' | xargs -P42 -I% git -C % config --get remote.origin.url
</code>

@nixCraft@mastodon.social avatar nixCraft , to random

Can you list programming languages where array indexing does not begin at zero?

mjgardner ,
@mjgardner@social.sdf.org avatar

@nixCraft versions prior to 2019’s v5.30.0 let you change the base index value with the $ special variable, mainly to placate [ migrations: https://perldoc.perl.org/variables/$%5B

(It had been deprecated since 2010’s v5.12.0)

@dheadshot@mastodon.social avatar dheadshot , to random

TFW you've bodged together a script to do a task and only while it's running properly do you realise it would have been more efficient/faster to just write something in (assuming I was better at awk)...