雖然用hash已經解決了我的問題, 但我也很想采用你的用法。 不過我笨, 還不怎麽明白如何用你的code。 比如說(name=lisa, age=20)都在list 文檔裏, 我怎麽可以用你的辦法在我的my.pl 裏用上 $name and $age 呢?
awk -F"=" '{print $2"="$1}'
oFile.txt > nFile.txt
好像awk -F沒有提到 file name.
這裏的oFile.txt是我的list嗎? 那麽nFile.txt又是什麽呢? 謝謝你指點迷津.
你的用法很吸引我
所有跟帖:
•
oFile.txt是指源文件名(list),nFile.txt是輸出文件名
-bigcat1969-
♂
(82 bytes)
()
09/24/2006 postreply
23:04:44
•
抱歉、抱歉,我好像誤會了你的要求。
-bigcat1969-
♂
(98 bytes)
()
09/24/2006 postreply
23:13:59
•
是的, 你誤會了我的要求。 不過不要緊
-cutecat123-
♀
(116 bytes)
()
09/25/2006 postreply
00:40:07