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.
df -h コマンドの出力を Excel 形式または CSV ファイルにするにはどうすればよいですか。
df -k | tr -s " " | sed 's/ /, /g' | sed '1 s/, / /g' | column -t df -h | column -t
上記のように試しましたが、フォーマットが正しくありません。形式を Excel またはテーブルに読み込むことができません。
助けてください
これを試して:
df -k | tr -s " " | sed 's/ /, /g' | sed '1 s/, / /g'
そしてこれを見て