HOME | LAB PROGRAMMING | RATIONAL ROSE DIAGRAM | COMPUTE GRAPHICS | CLASS DIAGRAM | NETWORK PROGRAMING | BEST OF THE SITE

How To Get 2 Row 2 Column Using awk command Shell Script | sepcified Row Sepcified Column

By Using awk command we can filter the particular column and particular row of the data.
We can get specified Row and specified column.

[root@redhat script]#cat test.txt
11 12 13
21 22 23
31 32 33
I Like to get the 2 row 2 column of the above file
2 row 2 column+ AWK LIST 2 COLUMN 2 ROW
FNR Represent as Row

[root@redhat script]#cat test.txt | awk 'FNR == 2 { print $2 }'
22
we can use the same format in the shell script.

0 comments: