localhost:~ $ df -k / | awk '{print $3/1024/1024/1024}'00.00618061localhost:~ $ ssh localhost df -k / | awk '{print $3/1024/1024/1024}'0101
Why the number is rounded over ssh?
shell;ssh;awk;quoting
You need more quoting when you pass arguments to SSH. Try this:ssh localhost df -k / | awk '{print \$3/1024/1024/1024}'00.00623375Note the \ before $3.