[请求] 一个Unix question! 好心人帮忙拉!!!

豆浆

卖豆奶的豆浆
注册
2004-08-14
消息
4,549
荣誉分数
3
声望点数
0
for Unix:
in orginal model, those command will work fine
a=$(echo "alias show_data='gawk -f gawkms lab7.data'")eval $a
put those into a Script( a file begin with #!/bin/bash),i will not work,how can i make it work in a bash script?
 
#!/bin/bash
a=echo "alias show_data='gawk -f gawkms lab7.data'"
eval $a
exit 0

你try try吧,我不sure if it works
 
谢谢世界上最最最热心的狗狗!!!^O^
 
什么东东啊?
 
#!/bin/bash
eval `gawk -f gawkms lab7.data`
exit 0
 
我粘在MSN上了
你看看啊~~~!!=O=
 
后退
顶部