Я не уверен в том, чтобы делать это из консоли sbt, но как насчет вашей оболочки?
$ sbt "tasks" | grep 'clean'
clean Deletes files produced by the build, such as generated sources, compiled classes, and task caches.
Или подстроки, как вы уже:
$ sbt "tasks" | grep 'class'
clean Deletes files produced by the build, such as generated sources, compiled classes, and task caches.
console Starts the Scala interpreter with the project classes on the classpath.
consoleProject Starts the Scala interpreter with the sbt and the build definition on the classpath and useful imports.
consoleQuick Starts the Scala interpreter with the project dependencies on the classpath.
run Runs a main class, passing along arguments provided on the command line.
runMain Runs the main class selected by the first argument, passing the remaining arguments to the main method.
Хотя это может не полностью удовлетворить ваши потребности, вы посмотрели команду sbt 'last-grep'? – edi
спасибо. Это помогло мне. Думаю, это лучший вариант для меня. Я не уверен, что то, что я прошу, возможно вообще. –