assinging variables in Bash from the command line
Hi: If I want to do a pipe command and using semi-colons as well... how do I assign certain parts of my command to a variable?? Remember that I wont be building a bash script but working all from one command. Thanks alot!! Raul
On Thursday 03 January 2002 15:39, Raúl Gutiérrez Segalés wrote:
If I want to do a pipe command and using semi-colons as well... how do I assign certain parts of my command to a variable?? something like:
var=$(command|command) ; echo $var | more | commands hth dan
are you talkng about something like:
export JAVA_HOME=/usr/lib/jdk1.3
then you can:
cd $JAVA_HOME and you will be in that directory?
Hope this is what you are looking for.
01/03/02 08:39:18 AM, "Raúl Gutiérrez Segalés"
Hi:
If I want to do a pipe command and using semi-colons as well... how do I assign certain parts of my command to a variable??
Remember that I wont be building a bash script but working all from one command.
Thanks alot!!
Raul
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (3)
-
Dan Am
-
James Bliss
-
Raúl Gutiérrez Segalés