Shell Object


    Apr 03 2006 | 3:10 pm
    Hi,
    I've just installed Bill Orcutt's Shell object. i am wondering why this command:
    df / | sed -n '2,2p' | awk '{print $4}'
    works fine in my osx terminal, but not via the shell object in max. (it calculates free space on the root drive)
    Example included ('df -k' seems to work fine)
    Thanks
    Steve
    ----

    • Apr 03 2006 | 4:11 pm
      it is because of that comma in '2,2p' and dollar sign, both are special characters in max message boxes.
      try this: df / | sed -n '2,2p' | awk '{print $4}'
      I know it is rather defeatist but would this not do the same job:
      Regards,
      Chris
      ___________
      Christopher McClelland Research Assistant / PhD Candidate Queens University of Belfast Belfast BT7 1NN c.mcclelland@qub.ac.uk
    • Apr 03 2006 | 4:30 pm
      > it is because of that comma in '2,2p' and dollar sign, both are > special characters in max message boxes.
      duh of course..
      yeah I figured I could also use a list function or something to extract the data in Max, but was confused as to why the command itself wasn't working.
      thanks :)