多数の大きなCSVファイルがあり、それらをTSV(タブ区切り形式)で希望しています。複雑なのは、CSVファイルのフィールドにコンマが含まれていることです。例: A,,C,"D,E,F","G",I,"K,L,M",Z 期待される出力: A C D,E,F G I K,L,M Z (その間の空白は「ハード」タブです) このサーバーにPerl、Python、およびcoreutilsがインストールされています。
bashインタープリター自体にはオプションがあります。 bashのmanページの22〜23行目: OPTIONS All of the single-character shell options documented in the description of the set builtin command can be used as options when the shell is invoked. In addition, bash interprets the following options when it is invoked: -c ... -i ... -l ... -r ... bashのmanページで次のようないくつかの検索パターンを使用しました。 /^\s*set /list …