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.
我想通过 Textmate 'Filter Through Command' 命令调用该工具。
目的是替换 BBEdit 的“Textfactory”功能,因为较大的文本工厂往往变得难以管理。
sed 是首选工具吗?为此目的使用它的任何最佳实践?
您必须创建一个读取 STDIN 并打印到 STDOUT 的 shell 脚本。使用任何你知道的语言。
使用你碰巧知道的任何东西,sed、AppleScript、PHP、Perl、Ruby,如果你已经知道如何使用它们,它们中的任何一个都可以完成这项工作。最佳做法是使用您熟悉的语言。TextMate 的一个优点是它的可扩展性与语言无关。