10

I'm new to Linux OS and studying Mobile Computing. I have to analyze files using awk. I'm using Ubuntu 14.04.

Do I need to install awk or is it inbuilt in Ubuntu?

3
  • 4
    If you're using Ubuntu 14.04, why didn't you just run awk in a terminal and see for yourself?
    – muru
    Dec 17, 2015 at 5:39
  • 1
    Yes its Working . I tried awk '/some_word/ {print}' file_name
    – NIMISHAN
    Dec 17, 2015 at 5:41
  • 1
    You can test whether awk or any other software is installed by doing which awk. It will either return the path to the exe or return nothing. Dec 17, 2015 at 10:17

1 Answer 1

21

Ubuntu's desktop edition has mawk installed by default, as it's a dependency of the lsb-core package. It conforms to standard AWK, with a few extensions.

GNU awk, which has more features, needs to be installed separately:

sudo apt-get install gawk
1
  • 1
    Side note - because gnu awk has more features, some of the functions are present only in gnu awk, not mawk. So some code may be incompatible. But for simple code any version will do. Dec 17, 2015 at 5:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.