UNIX:变量内部的变量

时间:2016-03-18 23:32:32

标签: unix

我只是尝试将变量放入变量但它不起作用......我该如何修复它?

DEL=$(find . -type f | sed "s/^.*\///g" | sed -n '/\./p' | sed "s/.*\.//g" | uniq)
EL=$(${DEL} | tr '\n' ',' | sed 's/,$//')

1 个答案:

答案 0 :(得分:1)

你可以尝试

EL=$(echo "$DEL" | tr '\n' ',' | sed 's/,$//')

private void TicForm_Load(object sender, EventArgs e)
        {
            //picture1 is the name of a pictureBox created on TicForm.cs (Design)
            picture1.Load(imageUrl);
        }