Live data from Hacker News

How to Make Money Using Grep, Sed and Awk

openmonstervision.github.io

21–30 of 42 posts

Re: How to Make Money Using Grep, Sed and Awk

#21
The best way to make money with grep/sed/awk is to become sufficiently l33t in them, you can be gainfully employed by others to "do things" on "the goddam unixes"

hey.. we got more unixes here. can somebody grep them out the way?

Re: How to Make Money Using Grep, Sed and Awk

#22
post #16

Earlier quoted context omitted.

The beauty of bash scripts is that anything with u+x in your PATH, aliases and user-defined functions become a first-class citizen with the same interface. The usual plumbing with pipes and redirection -- and sometimes some more advanced stuff like process substitution -- is often all you need. Moving to Python, say, makes the control flow and the "software engineering" easier, for sure. However, don't underestimate…

There's no reason you can't orchestrate awk and other tools from python though. (I doubt I'm the only one that's done that before).

I wrote a tool to do that:

https://github.com/ianmiell/shutit

Among many other things I use it to test Kubernetes/OpenShift clusters in Vagrant for Chef recipes:

https://github.com/ianmiell/shutit-openshift-cluster/blob/ma...

and here's some others in a more 'native' python format:

https://github.com/ianmiell/shutit-scripts/

https://github.com/ianmiell/shutit-scripts/blob/master/logme...

https://github.com/ianmiell/shutit-scripts/blob/master/gnupl...

Re: How to Make Money Using Grep, Sed and Awk

#23
post #9

Dude! You need help with using your tools' features to reduce your pipeline lengths. - grep derp | sed whatever is the same as sed '/derp/ whatever' (you might be interested in sed -r for that matter) - sed whatever | sed whatever\ else is the same as sed -e whatever;whatever\ else This list is by no means complete but saves a lot of external processes already, and seriously: think about writing the whole thing in pu…

There's always some reason for not to write "the perfect" command. Either being in a hurry or you just don't care about it.

Considering the commented out valid code, it looks like he was saving time by just adding another "|" and check the output, instead of improving the existing command and check the output. Something that I do very often as well.

Re: How to Make Money Using Grep, Sed and Awk

#24
post #16

Earlier quoted context omitted.

There's no reason you can't orchestrate awk and other tools from python though. (I doubt I'm the only one that's done that before).

No, of course not, but it’s way easier in Bash because of the first-class-ness of commands. In Python, you’d have to mess about with the subprocess module, etc.

I guess it comes down to which school of wizardy you went to. I'd rather muck around in python, if only because then I wouldn't dread rereading/editing the whole thing a couple months later.

Re: How to Make Money Using Grep, Sed and Awk

#25
I looked up the freelance job in question, it pays $36 for a 215 page publication from the 80s, including checking where automation has failed.

A question to those who do freelance work: sites like Upwork often have low budgets, where do you guys find better projects with better compensation?

Re: How to Make Money Using Grep, Sed and Awk

#26
post #21

The best way to make money with grep/sed/awk is to become sufficiently l33t in them, you can be gainfully employed by others to "do things" on "the goddam unixes" hey.. we got more unixes here. can somebody grep them out the way?

grep -v .*[nN].x will solve the infrastructure problem...

As you say, the way to make money (with any tool) is to get good enough at using them to be useful to someone that wants to pay you to do so

Re: How to Make Money Using Grep, Sed and Awk

#27
post #9

Dude! You need help with using your tools' features to reduce your pipeline lengths. - grep derp | sed whatever is the same as sed '/derp/ whatever' (you might be interested in sed -r for that matter) - sed whatever | sed whatever\ else is the same as sed -e whatever;whatever\ else This list is by no means complete but saves a lot of external processes already, and seriously: think about writing the whole thing in pu…

There's always some reason for not to write "the perfect" command. Either being in a hurry or you just don't care about it. Considering the commented out valid code, it looks like he was saving time by just adding another "|" and check the output, instead of improving the existing command and check the output. Something that I do very often as well.

Glancing over this I thought it said: "Either being hungry or...". Nodding in agreement, I then realised my mistake.

Re: How to Make Money Using Grep, Sed and Awk

#28

I looked up the freelance job in question, it pays $36 for a 215 page publication from the 80s, including checking where automation has failed. A question to those who do freelance work: sites like Upwork often have low budgets, where do you guys find better projects with better compensation?

I gave up with all of them. A friend of mine is using Upwork and Freelancer (awful) to find gigs, and he tried to get me involved so I could help him out with overspill. It seemed like you had to put ludicrously low rates to get terrible work, and despite paying peanuts, everyone expects amazing results.

I ditched it, joined some communities online, did a tiny bit of networking, and announced I was looking for work related to X - that was far more fruitful than sending 10 pitches a day for gigs on those sites and getting nothing in response because someone in India will do it for a dollar. Although I did love seeing the same projects re-appear a week later to fix the crap that their offshore team delivered.

Re: How to Make Money Using Grep, Sed and Awk

#30

I looked up the freelance job in question, it pays $36 for a 215 page publication from the 80s, including checking where automation has failed. A question to those who do freelance work: sites like Upwork often have low budgets, where do you guys find better projects with better compensation?

I gave up with all of them. A friend of mine is using Upwork and Freelancer (awful) to find gigs, and he tried to get me involved so I could help him out with overspill. It seemed like you had to put ludicrously low rates to get terrible work, and despite paying peanuts, everyone expects amazing results. I ditched it, joined some communities online, did a tiny bit of networking, and announced I was looking for work r…

I see... Thanks for sharing. I think what we seem to be after is contracting/consulting work rather than freelancing, the naming is what'll set the tone.
Post reply on HN