我有2個兩個文件shell腳本削減和sed幫助
$cat file1.txt
field1=value1
field2=value2
field3=value3
::
::
$cat file2.txt
something.field1.some
otherthing.field2.anything
anything.field3.something
我需要閱讀FILE1.TXT,並檢查是否爲FILE2.TXT字段N與值N
取代,這樣的結果將是
something.value1.some
otherthing.value2.anything
anything.value3.something
thanks..i'll嘗試。 – 2010-09-14 07:55:27