ファイルの拡張子の変更はbashのparameter expansionでできるよ。(って今検索した←) 下記はダウンロードしてあった.htmlファイルをw3mで同じディレクトリの.txtファイルに変換しています
$ for src in ~/Downloads/*.html; do w3m $src > ${src%.html}.txt; done
ファイルの拡張子の変更はbashのparameter expansionでできるよ。(って今検索した←) 下記はダウンロードしてあった.htmlファイルをw3mで同じディレクトリの.txtファイルに変換しています
$ for src in ~/Downloads/*.html; do w3m $src > ${src%.html}.txt; done
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.zunda.ninja/users/zundan/statuses/115975932062768882 on your instance and quote it. (Note that quoting is not supported in Mastodon.)