New answers tagged search
The answer is apt-cache search transmission. It does return only packages whose description contains the specified substring. (Not necessarily the specified word, for example the command also matches “retransmission”.) The string might not appear in the output of apt-cache search transmission because that only prints the first line of the description, ...
You can use aptitude with the ~d argument to search in the descriptions: aptitude search '~d <string>' # e.g. aptitude search '~d torrent' # search for “torrent” in the description
Use apt-cache: apt-cache search packagename This shows packages that apt considers related(many of them don't even include name of packge in both description and name). If you only want packages that contain packagename in description or name, pipe with grep: apt-cache search packagename | grep 'packagename' BUT! Other tools for the rescue: axi-cache ...
I normally fall back to google in such circumstances but try using man -K. From the man man page: -k, --apropos Equivalent to apropos. Search the short manual page descriptions for keywords and display any matches. See apropos(1) for details. -K, --global-apropos Search for text in all manual pages. This is a brute-force search, and is ...
apropos timespec. That will search through all the man pages for "timespec".
Assuming listoffiles is the file with the list of names, and they all start with / so you want to prefix with "http:/", and use curl, say, to get the file, you can do something simple like: while read file do if curl "http:/$file" | grep 'my pattern' then svn ..."$file"... fi done <listoffiles
grep -l "Nan" * Or, if you want to start nixing output, grep "NaN" * | grep -v ... I probably should also mention another possible next step, which is grep -l "NaN" * | xargs grep ... as grep needs filenames to work on for a second pass with a new search term.
I should think: ls ./* | cut -d '.' -f 1,2,3 | sort -u will get you there, this essentially lists the contents of the directory, then cuts off everything after the third '.' and then sorts the lines and removes duplicates. The end result would be a list of 'abc.sh.ID'. If you want you loop through this new list and do an 'ls [line]*' to get the ...
ls ?.* should give you desired results.
You must search for <td>n. The escaped version searches for a single isolated word td followed by n. \<word\> pattern is useful for searching words even when they are separated by other stuff than whitespace or appear at the beginning or end of the line. So try: /<td>name=
Top 50 recent answers are included