redirect - How to supply many argv and outputredirection with one bash var? -


फ़ाइल a.lst में:

  in1.a in1.b & gt; Out1.a 2 & gt; Out1.b in2.a in2.b & gt; Out2.a 2 & gt; Out2.b  

in.sh:

  सीएलआई = $ (sed -n -e "1 p" a.lst) perl a.pl $ CLI  

मुझे ऐसा करना चाहते हैं जैसे perl a.pl in1.a in1.b & gt; Out1.a 2 & gt; Out1.b , मैं इसे कैसे काम कर सकता हूं?

मैं इसे परीक्षण नहीं कर सकता यहां, लेकिन ऐसा लगता है कि eval का प्रयोग करना ऐसा काम करेगा, इसलिए:

  eval perl a.pl $ cLI  
< / html>

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -