@hona_chan

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

パイプ機能を使って最後にerが付く単語をアルファベット順に並べる

$ cat /usr/share/dict/words

wordsに入っている単語に対して、

最後にerが付く単語だけをアルファベット順に表示するにはどのようなコマンドにすれば良いですか?

0 likes

1Answer

OS にもよると思いますが,MacOSだと以下でできそうです.

$ grep 'er$' /usr/share/dict/words | sort
0Like

Your answer might help someone💌