Use various grep calls to compile lists of file and lines in those files that contains a user-specified text string.
% txts -h usage: txts /home/sco/scohtm/scocodes "fits image" [-v] arg1 = date the bias images were taken arg2 = text string to be searched for Additional options: -v = print verbose comments and run in debug mode -b = basename of search file -h = just show usage message % txts $codes/bash/HELP_FILES "H_beta_L" 0 Number of files with the text phrase = 2 1 Number of files with the text phrase using case-insentive search = 2 2 Number of files/line with the text phrase search = 4 3 Number of files/line with the text phrase using case-insentive search = 4 % cat SEARCH3 /home/sco/Installs/install_sco2019_20200305/codes/bash/HELP_FILES/redshifter.sh.help: 4861.330 H_beta_L /home/sco/Installs/install_sco2019_20200305/codes/bash/HELP_FILES/redshifter.sh.help: 5024.542 4861.330 0.400 H_beta_L 10072.0 /home/sco/Installs/install_sco2019_20200305/codes/bash/HELP_FILES/redshift.sh.help: 5024.542 4861.330 H_beta_L /home/sco/Installs/install_sco2019_20200305/codes/bash/HELP_FILES/redshift.sh.help: 5024.542 4861.330 H_beta_L 10072.1
Using the uhpwg routine I can make a listing with txts and then view all of the images associated with the list html docs. This provides a fast way of searching for lost or forgotten documents.
Here is how I might search for a web document, where I also view the images associated them. Suppose I have a web document where I may have used a phrase like "acm biass". Here is what I might do.
WEB SEARCH EXAMPLE: % txts $scohtm/scocodes "acm bias" 0 Number of files with the text phrase = 30 1 Number of files with the text phrase using case-insentive search = 35 2 Number of files/line with the text phrase search = 79 3 Number of files/line with the text phrase using case-insentive search = 84 I read trhough the most extensive file (SEARCH3) and I still can not find what I am looking for. Ica look at the figures in all of the html docs using the following steps. % uhpwg.sh SEARCH0 Number of unique paths found = 18 The number of images file located = 84 View them with: display_image_list uhpwg.out_images So I run the suggested command: % display_image_list uhpwg.out_imagesIn this example, I viewed 84 images in just a few minutes.