This tutorial on AWK Environment explains on how to set up the AWK environment on our GNU/Linux system.
Usually , AWK will be available by default on most of the GNU/Linux distributions. We can use certain commands to check whether it is present on our system or not. For suppose, if we don’t have AWK built in our system, then install it on Debian based GNU/Linux using Advance Package Tool (APT) package manager as stated below−
Similarly, to install AWK on RPM based GNU/Linux, we need to use Yellowdog Updator Modifier yum package manager as below−
After installation, make sure that AWK is accessible via command line.
On executing the above code, we will get the below result −
As GNU AWK is a part of the GNU project, its source code is available for free download. We have already seen how to install AWK using package manager earlier. Let us learn on how to install AWK from its source code.
The below installation steps are applicable to any GNU/Linux software, and for most other freely-available programs as well.
Stated below are the installation steps −
There We go! We have successfully compiled and installed AWK. We can now verify it by executing the awk command as below−
On executing this code, We will get the below result −
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.