开发者

How to transmit more than 2048 chars to *.sh script in ksh?

I need to transmit a paramete开发者_运维百科r which consists more than 2048 chars to ksh script. How is it possible?


$ your_script your...really...long...parameter

Where your_script consists of:

#!/bin/ksh
do_something_with "$1"

or

$ command_with_large_output | your_script

Where your_script consists of:

#!/bin/ksh
while read -r line
do
    do_something_with "$line"
done

Other combinations are possible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜