3 ms·
For context, I'm in university, but during one of my internships, a lot of the older developers always seemed to use awk/sed in really powerful ways. At the sam
by 3uclid 8y ago
For context, I'm in university, but during one of my internships, a lot of the older developers always seemed to use awk/sed in really powerful ways. At the same time, I noticed a lot of the younger developers hardly used it.
I'm not sure if it's a generational thing, but I thought that was interesting.
Anyways, are there any good resources to learn awk/sed effectively?
- MikeTaylor 8y agoAwk really has been superseded by Perl (and therefore arguably by Python, Ruby, etc.) But sed remains a thing of beauty, all its own, and very well worth learning. Hardly a day goes by that I don't use it in some one-off command like for i in *.png; do pngtopnm < $i | cjpeg > `echo $i | sed 's/png$/jpeg/'`; done
- kazinator 8y agofor i in in *.png ; do pngtopnm $i | cjpeg > ${i#.png}.jpeg done