Any good way to check if code has the required output
net.ipv4.icmp_echo_ignore_broadcasts = 1
What I can think of is above, and it display the required output.
What I want to do is that it will display 'T' if it has and value return and 'F' if no return.
Code:
# /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts
net.ipv4.icmp_echo_ignore_broadcasts = 1
Code:
/sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts | grep "= 1"
What I can think of is above, and it display the required output.
What I want to do is that it will display 'T' if it has and value return and 'F' if no return.