豆浆 卖豆奶的豆浆 注册 2004-08-14 消息 4,549 荣誉分数 3 声望点数 0 2005-03-28 #1 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?
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?
陪 陪你去看龙卷风 新手上路 VIP 注册 2002-10-12 消息 11,271 荣誉分数 61 声望点数 0 2005-03-28 #2 #!/bin/bash a=echo "alias show_data='gawk -f gawkms lab7.data'" eval $a exit 0 你try try吧,我不sure if it works
#!/bin/bash a=echo "alias show_data='gawk -f gawkms lab7.data'" eval $a exit 0 你try try吧,我不sure if it works
16楼高空堕落 知名会员 注册 2004-08-14 消息 606 荣誉分数 1 声望点数 128 2005-03-28 #5 alias show_data='gawk -f gawkms lab7.data': command not found
豆浆 卖豆奶的豆浆 注册 2004-08-14 消息 4,549 荣誉分数 3 声望点数 0 2005-03-28 #9 #!/bin/bash eval `gawk -f gawkms lab7.data` exit 0