I have a strange issue.
Code:
(awk '$3 == "nfs" { cnt++ }; END { print cnt }' /etc/fstab)
This is giving different count each time.
To test this, tried the one here
Code:
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
151
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
145
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
150
checking the output, it has all wired outputs each time, since command was searching for "nfs", it is giving all non matched strings. output were always different.
do
/boot
/tmp
/var
none
/dev/pts
The same script is working on all other 100+ machines, only one machine is showing the wired stuff.
any ideas/thoughts ?