Linux / Unix: “-bash: python: command not found” error and solution

Posted on in Categories , , , , , , , , , , , last updated January 11, 2017

I am a new user and trying to run Python program. I have a cloud based VM/VPS and when I type python at the terminal of my server, I get the following error:
-bash: python: command not found

How do I solve this problem?

awk / cut: Skip First Two Fields and Print the Rest of Line

Posted on in Categories , , , , last updated December 21, 2016

I would like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input
    This is a test
    Giving back more than we take

I want my input file with the following output:
    a test
    more than we take

How do I printing lines from the nth field using awk under UNIX or Linux operating systems?