The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-28-2006
mikie mikie is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 16
Stripped argument

Hi there

Has anyone seen this behaviour before, and if so, do they know why this happens? I am running this in BASH:


Code:
$ export DEV="/usr/sbin/diskutil list | /usr/bin/grep Master | /usr/bin/awk '{ print $6 }'"
$ echo $DEV
/usr/sbin/diskutil list | /usr/bin/grep Master | /usr/bin/awk '{ print }'

If you notice, the $6 argument has been stripped from the echo'd output.

Mike