Why is it that:
free | cut -c67- && free | cut -c55-61
gives me buffer and cache size, but
free -s4 | cut -c67- && free -s4 | cut -c55-61
gives me only the cache size.
Why is it that:
free | cut -c67- && free | cut -c55-61
gives me buffer and cache size, but
free -s4 | cut -c67- && free -s4 | cut -c55-61
gives me only the cache size.
From Bash man page:
the
&&
operator won't execute command2 until command1 exited with return value 0.Is command
free -s4 | cut -c67-,56-61
more close to what you want?