Showing results 1 to 1 of 1
Search took 0.01 seconds.
Posts Made By: juppe10a
Forum: Shell Scripting Jan 30th, 2004
Replies: 2
Views: 7,685
Posted By juppe10a
Re: Pipe inside variable isn't working in bash

Hi,

if you want to store command result in variable use back quote:
# X=`ls | wc`
# echo $X.

or use command alias:
# alias X="ls | wc"
# X
Showing results 1 to 1 of 1

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC