The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #5 (permalink)  
Old 08-21-2008
bp_vardhaman bp_vardhaman is offline
Registered User
  
 

Join Date: Mar 2008
Location: Hyderabad,India
Posts: 12
i want now include in script rather just want to try from Command line like this

cat dev.txt | awk '/^uuid/ { uuid=$3 } /^device-config/ && $NF == '/dev/sdc' { print uuid }'

But nothing it displaying