[CentOS] script help
Tom Brown
tom at ng23.netFri Oct 26 10:51:45 UTC 2007
- Previous message: [CentOS] script help
- Next message: [CentOS] script help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >> >> 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 > > oops and actually doing what you asked results in the same MOUNTER=`ssh $i "mount | grep data | awk '{print \$1, \$2, \$3}'"` 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
- Previous message: [CentOS] script help
- Next message: [CentOS] script help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list