localhost:~ $ df -k / | awk '{print $3/1024/1024/1024}'
0
0.00618061
localhost:~ $ ssh localhost "df -k / | awk '{print $3/1024/1024/1024}'"
01
01
Asked
Active
Viewed 92 times
0

Gilles 'SO- stop being evil'
- 829,060

phar1no
- 31
$3
is being substituted in your shell, beforessh
sees it. – Michael Homer Jul 24 '15 at 07:22df -k / | awk '{print /1024/1024/1024}'
– amisax Jul 24 '15 at 07:27