The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 11-22-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,585
Dont undestand what you want...
Is it assign to a variable the result of one of your commands above?
in ksh you would do so like that:

Code:
VAL1=$(cat Hello.txt | egrep "That One Pattern" | awk '{print $NF}')
#to check
echo " VAL1 = " $VAL1