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 -->
  #3 (permalink)  
Old 05-27-2009
Sirisow5 Sirisow5 is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
sorry.. still facing the issue with that. Encountered the error like unexpected '('. I've used following command:
var1=$(df -k | awk '{print $1 " " $5}')

Please suggest...

-----Post Update-----

I resolved this issue by redirecting the value to another text file.