htmltools

Various command line tools to transform HTML documents
git clone git://git.entf.net/htmltools
Log | Files | Refs | README | LICENSE

htmlattr.1.scd (853B)


      1 HTMLATTR(1)
      2 
      3 # NAME
      4 
      5 htmlattr - print specific attribute values from top level nodes
      6 
      7 # SYNOPSIS
      8 
      9 *htmlattr* [-fs FIELD_SEPERATOR] ATTRIBUTES [_FILE_]...
     10 # OPTIONS
     11 
     12 *-fs*
     13 	character that will be used to both split the ATTRIBUTES argument and
     14 	seperate the output columns. "," by default.
     15 
     16 
     17 # DESCRIPTION
     18 
     19 Reads each file in sequence, iterates over all top level nodes and prints
     20 requested attributes for each element line by line. If an element does not
     21 contain any attributes requested, no line is printed. If some but not all
     22 attributes exist on a node, the respective columns will be empty. htmlattr
     23 prints the same number of columns for every node. If no FILE is given or FILE
     24 is -, read standard input.
     25 
     26 If any FILE cannot be processed, a message prefixed with the FILE name will be
     27 written to standard error.
     28 
     29 # AUTHOR
     30 
     31 Lukas Henkel <lh@entf.net>