-2
我有一個non.txt文件,並且想要編寫一個shell腳本來從整個文件中刪除一個字符串。文件具有以下數據: -如何從shell命令的文本文件中刪除字符串?
24321,247,654,"^A","91350","JEFFR2",21714,,1,243,654,"^A","91350","JEFFR2",21714,,1,654,0,"P","N","1140828","CA",,,,,"06037","C016","14","7",0,"21714 JEFFERS LN","","SANTA CLARITA","CA","913503917","","","","20140828"
並從上面的數據集中刪除「^ A」。
請幫我找出解決方案。
請提供您的編碼嘗試。 (http://stackoverflow.com/help/how-to-ask) –
那麼刪除的規則是什麼以及您希望的輸出是什麼?你只是想刪除特定的字符串,還是總是第四場?圍繞字符串的逗號怎麼樣?你已經嘗試了什麼? –
也請檢查您選擇的標籤 - 除非您有特定的理由包含它們(您應該解釋),否則您應該刪除[tag:ubuntu],[tag:cygwin]和[tag:putty]。 –