Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
新しい列を毎日 csv シートに追加するスクリプトを作成したいと考えています。
スクリプトは毎日実行され、csv ファイルに追加されます。csvファイルを編集する方法は?編集は awk または sed コマンドを介して行われます。このcsvファイルを使用してユーザーにメールを送信し、Excelシートで使用します.
私が経験したすべての質問から関連する回答が見つからなかったので、回答してみてください。
だからあなたはそのようなものが欲しい:
sed 's/\(john mayers.*\)$/\1\,hallo/' file
ファイル:
john mayers ,hi ,hello jack bauer ,yo ,wasup
出力:
john mayers ,hi ,hello,hallo jack bauer ,yo ,wasup