Re: script help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





How about
# MOUNTER=`ssh $i "mount | grep data | awk '{print \$1,\$2,\$3}'"`

alas no

MOUNTER=`ssh $i 'mount | grep data | awk "{print \$1, \$2, \$3}"'`

results in

awk: {print , , }
awk:        ^ syntax error
awk: {print , , }
awk:          ^ syntax error
awk: {print , , }
awk:            ^ syntax error
awk: cmd. line:1: {print , , }
awk: cmd. line:1:             ^ unexpected newline or end of string


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux