W dniu 24.05.2020 o 18:49, Lee pisze:
You can use awk to put the lines together and then grep: $ apt search perl | awk -v RS="" '{gsub("\n",""); print $0}' | grep JSON | grep -i data
Yes... you're right.. but it's hard to remember... and I find myself going back to "apt-cache" ...
W dniu 24.05.2020 o 15:35, Julian Andres Klode pisze:
It's a feature, not a bug. It's significantly easier to read. Future versions of apt search will also
I would suggest to change status to "feature request/whish list".
* pipe output through a pager, so just search in there * support searching via patterns, so just search that way (see apt-patterns manpage, plus there'll be ?description pattern) As to scriptable interfaces - we're still working on how to make apt usable in scripts while maintaining our ability to break the behavior and output formats. There will probably be some sort of compat levels and/or output format specifiers at a future point, at which point apt will be useful in scripts.
I suggest adding option "--raw" to print raw search results, same as with "apt-cache", so:
apt search perl --raw | grep -i json | grep -i data | ... and other filters user like to apply