help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Use one line for myvar=XXX cat <(echo "$myvar")


From: Peng Yu
Subject: [Help-bash] Use one line for myvar=XXX cat <(echo "$myvar")
Date: Sun, 21 Jul 2013 19:53:33 -0500

Hi,

myvar=XXX cat <(echo "$myvar")

myvar in <() won't get the value XXX. I could use export to split the
above line into two lines as in the following.

export myvar=XXX
cat <(echo "$myvar")

But is there an one line command for it? Thanks.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]