awk -F"=" '{print $2"="$1}' oFile.txt > nFile.txt
用awk不是很輕鬆就搞定了嗎?!
用什麽perl,看我一句話搞定!
所有跟帖:
•
你的用法很吸引我
-cutecat123-
♀
(383 bytes)
()
09/24/2006 postreply
21:57:07
•
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