Live data from Hacker News

Ask HN: What are your favorite UNIX tools?

news.ycombinator.com

1–10 of 15 posts

Re: Ask HN: What are your favorite UNIX tools?

#6

awk (It's a guilty pleasure to write shell pipelines that use awk to write a shell script and then pipe that script in sh, I find it easier than looking up the bizzaro syntax for loops in bash in the info pages.)

> use awk to write a shell script

Do you have any examples of this?

Re: Ask HN: What are your favorite UNIX tools?

#8
perl-rename - rename is also good, but much more annoying to use for me as it doesn't use standard regex notation like perl-rename.

printf - shell is natively great at interpolation already, but having C-style printf formatting is often useful and echo has a lot of footguns

Re: Ask HN: What are your favorite UNIX tools?

#9

awk (It's a guilty pleasure to write shell pipelines that use awk to write a shell script and then pipe that script in sh, I find it easier than looking up the bizzaro syntax for loops in bash in the info pages.)

> use awk to write a shell script Do you have any examples of this?

How about

    ls -l *.txt | awk '{if ($5
to cat text files that are less than 2000 bytes long
Post reply on HN