Save output into variable

后端 未结 1 1629
故里飘歌
故里飘歌 2021-01-19 17:59

i have tried for like 30 minutes. Whats wrong with this code ? :( Input :

var = `cat marktplatz.html | grep -m 1 \"post\" | grep -o -E \'\\b(jobs/.*htm)\' `         


        
1条回答
  •  一生所求
    2021-01-19 18:26

    var = BLABLA
    

    should be

    var=BLABLA
    

    The first form is interpreted as running the command var with = as the first argument.

    0 讨论(0)
提交回复
热议问题