The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Redirect to a Variable? Or is it cmd cap?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Redirect to a Variable? Or is it cmd cap?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-22-2008
vbe
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
vbe
View Public Profile
Find all posts by vbe
Find vbe's past nominations received
Find vbe's present nominations given