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.
任何指向对英语单词执行单数化的 bash 函数的指针?它不需要是完美的。
一个不完美的将是${word%s}。
${word%s}
如果您需要同时涵盖名词和动词,和/或不完美的解决方案变得太不完美,那么忘记 Bash 并寻找用于形态分析和消歧的工具。