|
getprice (stock symbol)
# search for <span tag(s) with attribute id="yfs_l10_goog" cat cleanedupfile.xhtml | xpath '//span[@id="yfs_l10_goog"]' # get first one cat cleanedupfile.xhtml | xpath '(//span[@id="yfs_l10_goog"])[1]' # get contents cat cleanedupfile.xhtml | xpath '(//span[@id="yfs_l10_goog"])[1]/text()' > outputfile
On Internet since 1987.