Comments on: Linux/UNIX Awk Command Tutorial with Examples https://www.linuxtechi.com/awk-command-tutorial-with-examples/ Fri, 30 Jul 2021 05:00:58 +0000 hourly 1 By: GWShark https://www.linuxtechi.com/awk-command-tutorial-with-examples/#comment-6220 Thu, 18 Oct 2018 23:32:34 +0000 http://www.linuxtechi.com/?p=2365#comment-6220 The reason some of the awk scripts are not wrung is the following

Original statement:
awk -F, ‘{a[$1];}END{for (i in a)print i;}’ awkfile.txt

Correction Statement:
awk -F, ‘{a[$1];}END{for (i in a)print i;}’ awkfile.txt

The difference is.
Original:
‘{a[$1];}END{for (i in a)print i;}’

Correction:
‘{a[$1];}END{for (i in a)print i;}’

Note the quotes.

]]>
By: Rashmi https://www.linuxtechi.com/awk-command-tutorial-with-examples/#comment-135 Fri, 10 Feb 2017 04:57:51 +0000 http://www.linuxtechi.com/?p=2365#comment-135 Example 7,8,9 are not working on my putty..can you please help?

]]>
By: Ashish Durgapal https://www.linuxtechi.com/awk-command-tutorial-with-examples/#comment-134 Wed, 04 Nov 2015 11:56:13 +0000 http://www.linuxtechi.com/?p=2365#comment-134 Thanx for such a nice and simple tutorial for beginners.

]]>
By: Sanders https://www.linuxtechi.com/awk-command-tutorial-with-examples/#comment-133 Tue, 05 Aug 2014 19:28:35 +0000 http://www.linuxtechi.com/?p=2365#comment-133 Well, this tutorial, looks like a collection of awk one-liners than a tutorial.

]]>
By: sudeep https://www.linuxtechi.com/awk-command-tutorial-with-examples/#comment-132 Tue, 05 Aug 2014 17:01:26 +0000 http://www.linuxtechi.com/?p=2365#comment-132 this is really nice tutorial,
i was searching for something.
which i got it here.
thanks

]]>