Mar 17, 2023

HTMLタグを取り除く

逆順だが、
2. すべてのhtmlタグを取り除く。
についてchatGPTに聞いてみた。
その様子は下のスクリーンキャプチャで読める。
「bashで、カレントディレクトリのすべてのファイルのhtmlタグを削除した、テキストにしてください。その際、新しくディレクトリを作成して、ファイルのサフィックスを「.txt」にして、収めてください」と尋ねた。
表示されているコードでうまくいくが、コードを得る場合、同じ質問をchatGPTにしてください。シェルスクリプトは「chmod 700 ファイル名」として実行属性を持たせる必要がある。またプロンプトからのコマンドは頭に「./」を付ける必要がある。

I asked ChatGPT about the following task, which is listed in reverse order:
2. Remove all HTML tags.
A screenshot of the conversation can be seen below. I asked, "In bash, please remove all HTML tags from all files in the current directory, create a new directory, save the files as text files with the suffix '.txt' and put them in the new directory."



23_03_17a

Posted at 19:25 in n/a | WriteBacks (0) | Edit
WriteBacks
TrackBack ping me at
http://www.haizara.net/~shimirin/blosxom/blosxom.cgi/20230317191805.trackback
Post a comment

writeback message: Ready to post a comment.













Captcha:
To prevent comment spam, please retype the characters in this image:

Enter the text here: