0
我現在有一個變量var1 ='common_location/specific_location_1/common_filename_text'我必須獲取新變量var2 ='common_location/specific_location_2/common_filename_text 」。我怎樣才能在linux shell中做到這一點。我是shell腳本的新手。所以請解釋,假設我知道一點。複製完整路徑變量的一部分並使用該部分在shell中構造另一個不同的完整路徑變量
請解釋什麼是'var','_ 1'和'_2' –
對不起,它與'var'錯誤類型。應該是'var1'。現在的答案就是解釋。 – rush
謝謝。是的,這很容易。 –